********************************************************************************
** 	TITLE:		ca2011_ces_contact_networks                                   **
**	AUTHOR:	    Philippe Mongrain                                             **
**	DATA:       CPS&PES&MBS&WEB_2011_final                                    **
**	DATE:		October 2022 					                              **	
**	VERSION:	Stata 16					                                  **
********************************************************************************

* Version control

version 16.0

* Open log file

capture log close
log using "ca2011_ces_contact_networks", replace

* Open dataset

use "CPS&PES&MBS&WEB_2011_final.dta", clear


**************************
** RELABELING DISTRICTS **
**************************

gen fed11_name = ""

replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 9004
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 22239
replace fed11_name = "London North Centre / London-Centre-Nord" if CES11_IDNUM == 811139
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 4736
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2328
replace fed11_name = "Gatineau" if CES11_IDNUM == 6943
replace fed11_name = "Brant" if CES11_IDNUM == 809060
replace fed11_name = "" if CES11_IDNUM == 812869
replace fed11_name = "Avalon" if CES11_IDNUM == 49
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 14216
replace fed11_name = "Oakville" if CES11_IDNUM == 12751
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 3
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 12
replace fed11_name = "Avalon" if CES11_IDNUM == 13
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 23
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 29
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 30
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 31
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 32
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 52
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 58
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 59
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 60
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 63
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 76
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 77
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 87
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 96
replace fed11_name = "Avalon" if CES11_IDNUM == 100
replace fed11_name = "Avalon" if CES11_IDNUM == 102
replace fed11_name = "Avalon" if CES11_IDNUM == 103
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 107
replace fed11_name = "Avalon" if CES11_IDNUM == 113
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 116
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 117
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 126
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 137
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 142
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 143
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 146
replace fed11_name = "Avalon" if CES11_IDNUM == 151
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 153
replace fed11_name = "Avalon" if CES11_IDNUM == 154
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 155
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 169
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 173
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 181
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 185
replace fed11_name = "Avalon" if CES11_IDNUM == 190
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 211
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 212
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 216
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 227
replace fed11_name = "Avalon" if CES11_IDNUM == 245
replace fed11_name = "Labrador" if CES11_IDNUM == 263
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 267
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 269
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 274
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 283
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 284
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 295
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 300
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 311
replace fed11_name = "Labrador" if CES11_IDNUM == 312
replace fed11_name = "Avalon" if CES11_IDNUM == 320
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 321
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 324
replace fed11_name = "Labrador" if CES11_IDNUM == 328
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 341
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 345
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 356
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 362
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 366
replace fed11_name = "Avalon" if CES11_IDNUM == 372
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 385
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 403
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 404
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 406
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 412
replace fed11_name = "Avalon" if CES11_IDNUM == 421
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 429
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 430
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 446
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 450
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 451
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 461
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 465
replace fed11_name = "Labrador" if CES11_IDNUM == 470
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 486
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 489
replace fed11_name = "Labrador" if CES11_IDNUM == 505
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 507
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 508
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 523
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 525
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 544
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 550
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 551
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 552
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 554
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 564
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 565
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 570
replace fed11_name = "Avalon" if CES11_IDNUM == 589
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 592
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 605
replace fed11_name = "Avalon" if CES11_IDNUM == 606
replace fed11_name = "Avalon" if CES11_IDNUM == 607
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 608
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 625
replace fed11_name = "Avalon" if CES11_IDNUM == 632
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 636
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 644
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 647
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 648
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 649
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 650
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 662
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 665
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 689
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 695
replace fed11_name = "Malpeque" if CES11_IDNUM == 703
replace fed11_name = "Malpeque" if CES11_IDNUM == 707
replace fed11_name = "Egmont" if CES11_IDNUM == 712
replace fed11_name = "Egmont" if CES11_IDNUM == 713
replace fed11_name = "Malpeque" if CES11_IDNUM == 723
replace fed11_name = "Cardigan" if CES11_IDNUM == 724
replace fed11_name = "Malpeque" if CES11_IDNUM == 726
replace fed11_name = "Egmont" if CES11_IDNUM == 727
replace fed11_name = "Egmont" if CES11_IDNUM == 732
replace fed11_name = "Malpeque" if CES11_IDNUM == 736
replace fed11_name = "Charlottetown" if CES11_IDNUM == 742
replace fed11_name = "Charlottetown" if CES11_IDNUM == 762
replace fed11_name = "Malpeque" if CES11_IDNUM == 763
replace fed11_name = "Egmont" if CES11_IDNUM == 770
replace fed11_name = "Charlottetown" if CES11_IDNUM == 774
replace fed11_name = "Malpeque" if CES11_IDNUM == 780
replace fed11_name = "Egmont" if CES11_IDNUM == 781
replace fed11_name = "Charlottetown" if CES11_IDNUM == 789
replace fed11_name = "Egmont" if CES11_IDNUM == 792
replace fed11_name = "Egmont" if CES11_IDNUM == 795
replace fed11_name = "Egmont" if CES11_IDNUM == 804
replace fed11_name = "Egmont" if CES11_IDNUM == 813
replace fed11_name = "Cardigan" if CES11_IDNUM == 814
replace fed11_name = "Malpeque" if CES11_IDNUM == 816
replace fed11_name = "Malpeque" if CES11_IDNUM == 821
replace fed11_name = "Cardigan" if CES11_IDNUM == 825
replace fed11_name = "Egmont" if CES11_IDNUM == 829
replace fed11_name = "Charlottetown" if CES11_IDNUM == 848
replace fed11_name = "Cardigan" if CES11_IDNUM == 852
replace fed11_name = "Egmont" if CES11_IDNUM == 854
replace fed11_name = "Cardigan" if CES11_IDNUM == 876
replace fed11_name = "Malpeque" if CES11_IDNUM == 885
replace fed11_name = "Malpeque" if CES11_IDNUM == 890
replace fed11_name = "Cardigan" if CES11_IDNUM == 892
replace fed11_name = "Egmont" if CES11_IDNUM == 893
replace fed11_name = "Cardigan" if CES11_IDNUM == 902
replace fed11_name = "Egmont" if CES11_IDNUM == 905
replace fed11_name = "Cardigan" if CES11_IDNUM == 908
replace fed11_name = "Malpeque" if CES11_IDNUM == 909
replace fed11_name = "Cardigan" if CES11_IDNUM == 911
replace fed11_name = "Malpeque" if CES11_IDNUM == 923
replace fed11_name = "Cardigan" if CES11_IDNUM == 929
replace fed11_name = "Charlottetown" if CES11_IDNUM == 931
replace fed11_name = "Cardigan" if CES11_IDNUM == 932
replace fed11_name = "Charlottetown" if CES11_IDNUM == 936
replace fed11_name = "Egmont" if CES11_IDNUM == 941
replace fed11_name = "Cardigan" if CES11_IDNUM == 942
replace fed11_name = "Malpeque" if CES11_IDNUM == 947
replace fed11_name = "Malpeque" if CES11_IDNUM == 958
replace fed11_name = "Egmont" if CES11_IDNUM == 962
replace fed11_name = "Egmont" if CES11_IDNUM == 971
replace fed11_name = "Malpeque" if CES11_IDNUM == 972
replace fed11_name = "Egmont" if CES11_IDNUM == 984
replace fed11_name = "Malpeque" if CES11_IDNUM == 988
replace fed11_name = "Egmont" if CES11_IDNUM == 990
replace fed11_name = "Charlottetown" if CES11_IDNUM == 992
replace fed11_name = "Cardigan" if CES11_IDNUM == 996
replace fed11_name = "Malpeque" if CES11_IDNUM == 1023
replace fed11_name = "Cardigan" if CES11_IDNUM == 1028
replace fed11_name = "Malpeque" if CES11_IDNUM == 1032
replace fed11_name = "Cardigan" if CES11_IDNUM == 1041
replace fed11_name = "Cardigan" if CES11_IDNUM == 1042
replace fed11_name = "Egmont" if CES11_IDNUM == 1046
replace fed11_name = "Malpeque" if CES11_IDNUM == 1051
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1082
replace fed11_name = "Malpeque" if CES11_IDNUM == 1105
replace fed11_name = "Egmont" if CES11_IDNUM == 1108
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1142
replace fed11_name = "Malpeque" if CES11_IDNUM == 1149
replace fed11_name = "Egmont" if CES11_IDNUM == 1163
replace fed11_name = "Egmont" if CES11_IDNUM == 1168
replace fed11_name = "Cardigan" if CES11_IDNUM == 1172
replace fed11_name = "Malpeque" if CES11_IDNUM == 1183
replace fed11_name = "Egmont" if CES11_IDNUM == 1187
replace fed11_name = "Egmont" if CES11_IDNUM == 1189
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1192
replace fed11_name = "Malpeque" if CES11_IDNUM == 1202
replace fed11_name = "Egmont" if CES11_IDNUM == 1203
replace fed11_name = "Malpeque" if CES11_IDNUM == 1228
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1230
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1232
replace fed11_name = "Egmont" if CES11_IDNUM == 1261
replace fed11_name = "Malpeque" if CES11_IDNUM == 1264
replace fed11_name = "Malpeque" if CES11_IDNUM == 1269
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1270
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1272
replace fed11_name = "Egmont" if CES11_IDNUM == 1275
replace fed11_name = "Cardigan" if CES11_IDNUM == 1276
replace fed11_name = "Cardigan" if CES11_IDNUM == 1282
replace fed11_name = "Egmont" if CES11_IDNUM == 1283
replace fed11_name = "Egmont" if CES11_IDNUM == 1284
replace fed11_name = "Malpeque" if CES11_IDNUM == 1285
replace fed11_name = "Malpeque" if CES11_IDNUM == 1303
replace fed11_name = "Egmont" if CES11_IDNUM == 1308
replace fed11_name = "Cardigan" if CES11_IDNUM == 1311
replace fed11_name = "Malpeque" if CES11_IDNUM == 1334
replace fed11_name = "Cardigan" if CES11_IDNUM == 1336
replace fed11_name = "Malpeque" if CES11_IDNUM == 1352
replace fed11_name = "Cardigan" if CES11_IDNUM == 1362
replace fed11_name = "Egmont" if CES11_IDNUM == 1364
replace fed11_name = "Cardigan" if CES11_IDNUM == 1366
replace fed11_name = "Malpeque" if CES11_IDNUM == 1367
replace fed11_name = "Cardigan" if CES11_IDNUM == 1385
replace fed11_name = "Malpeque" if CES11_IDNUM == 1390
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1391
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1408
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1415
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1425
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1431
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1456
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1461
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1465
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1471
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1478
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1485
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1486
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1491
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1493
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1500
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1516
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1523
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1524
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1526
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1545
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1547
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1551
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1555
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1562
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1568
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1576
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1601
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1603
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1606
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1613
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1623
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1627
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1628
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1650
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1658
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1662
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1667
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1668
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1669
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1676
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1684
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1685
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1687
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1694
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1695
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1708
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1710
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1711
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1727
replace fed11_name = "Halifax West / Halifax - Ouest" if CES11_IDNUM == 1742
replace fed11_name = "Halifax" if CES11_IDNUM == 1747
replace fed11_name = "Sackville - Eastern Shore" if CES11_IDNUM == 1748
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1775
replace fed11_name = "Halifax West / Halifax - Ouest" if CES11_IDNUM == 1782
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1785
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1789
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1802
replace fed11_name = "Halifax" if CES11_IDNUM == 1805
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1809
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1811
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1812
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1816
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1827
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1831
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1833
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1842
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1849
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1855
replace fed11_name = "Sackville - Eastern Shore" if CES11_IDNUM == 1862
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1865
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1883
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1891
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1893
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1901
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1902
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1910
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1911
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1913
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1925
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1930
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1964
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1968
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1971
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 1976
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1987
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 1989
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1992
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1995
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1997
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 2008
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 2009
replace fed11_name = "Halifax West / Halifax - Ouest" if CES11_IDNUM == 2012
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 2027
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 2031
replace fed11_name = "Halifax West / Halifax - Ouest" if CES11_IDNUM == 2032
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 2034
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 2036
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 2047
replace fed11_name = "West Nova / Nova - Ouest" if CES11_IDNUM == 2054
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 2063
replace fed11_name = "Sackville - Eastern Shore" if CES11_IDNUM == 2066
replace fed11_name = "Halifax" if CES11_IDNUM == 2081
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 2085
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 2089
replace fed11_name = "Beausejour" if CES11_IDNUM == 2101
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2106
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2113
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2122
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2125
replace fed11_name = "Miramichi" if CES11_IDNUM == 2128
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2129
replace fed11_name = "Saint John" if CES11_IDNUM == 2130
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2133
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2134
replace fed11_name = "Saint John" if CES11_IDNUM == 2135
replace fed11_name = "Miramichi" if CES11_IDNUM == 2141
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2144
replace fed11_name = "Beausejour" if CES11_IDNUM == 2148
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2156
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2158
replace fed11_name = "Beausejour" if CES11_IDNUM == 2162
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2164
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2166
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2180
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2181
replace fed11_name = "Saint John" if CES11_IDNUM == 2184
replace fed11_name = "Fredericton" if CES11_IDNUM == 2185
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2186
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2187
replace fed11_name = "Beausejour" if CES11_IDNUM == 2189
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2190
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2191
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2194
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2196
replace fed11_name = "Miramichi" if CES11_IDNUM == 2197
replace fed11_name = "Fredericton" if CES11_IDNUM == 2199
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2204
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2205
replace fed11_name = "Fredericton" if CES11_IDNUM == 2207
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2217
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2218
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2226
replace fed11_name = "Fredericton" if CES11_IDNUM == 2236
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2242
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2244
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2248
replace fed11_name = "Saint John" if CES11_IDNUM == 2249
replace fed11_name = "Beausejour" if CES11_IDNUM == 2272
replace fed11_name = "" if CES11_IDNUM == 2283
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2303
replace fed11_name = "Fredericton" if CES11_IDNUM == 2304
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2307
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2321
replace fed11_name = "Saint John" if CES11_IDNUM == 2322
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2327
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2352
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2369
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2374
replace fed11_name = "Saint John" if CES11_IDNUM == 2375
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2389
replace fed11_name = "Saint John" if CES11_IDNUM == 2402
replace fed11_name = "Fredericton" if CES11_IDNUM == 2421
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2443
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2451
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2470
replace fed11_name = "Miramichi" if CES11_IDNUM == 2482
replace fed11_name = "Beausejour" if CES11_IDNUM == 2504
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2505
replace fed11_name = "Saint John" if CES11_IDNUM == 2506
replace fed11_name = "Miramichi" if CES11_IDNUM == 2510
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2512
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2525
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2527
replace fed11_name = "Fredericton" if CES11_IDNUM == 2529
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2530
replace fed11_name = "Beausejour" if CES11_IDNUM == 2541
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2542
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2547
replace fed11_name = "Saint John" if CES11_IDNUM == 2554
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2568
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2569
replace fed11_name = "Saint John" if CES11_IDNUM == 2587
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2588
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2590
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2592
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2602
replace fed11_name = "Fredericton" if CES11_IDNUM == 2604
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2606
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2608
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2609
replace fed11_name = "Saint John" if CES11_IDNUM == 2611
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2612
replace fed11_name = "Fredericton" if CES11_IDNUM == 2622
replace fed11_name = "Saint John" if CES11_IDNUM == 2626
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2627
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2643
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2661
replace fed11_name = "Fredericton" if CES11_IDNUM == 2663
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2666
replace fed11_name = "Saint John" if CES11_IDNUM == 2667
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2670
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2671
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2688
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2696
replace fed11_name = "Fredericton" if CES11_IDNUM == 2699
replace fed11_name = "Fredericton" if CES11_IDNUM == 2702
replace fed11_name = "Fredericton" if CES11_IDNUM == 2710
replace fed11_name = "Saint John" if CES11_IDNUM == 2712
replace fed11_name = "Saint John" if CES11_IDNUM == 2723
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2735
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2736
replace fed11_name = "Beausejour" if CES11_IDNUM == 2742
replace fed11_name = "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest" if CES11_IDNUM == 2747
replace fed11_name = "Beausejour" if CES11_IDNUM == 2762
replace fed11_name = "Fredericton" if CES11_IDNUM == 2765
replace fed11_name = "Saint John" if CES11_IDNUM == 2781
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2784
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 2806
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 2818
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 2826
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 2839
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 2848
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 2850
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 2855
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 2860
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 2862
replace fed11_name = "Hochelaga" if CES11_IDNUM == 2866
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 2868
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 2902
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 2903
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 2916
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 2917
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 2919
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 2928
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 2930
replace fed11_name = "Bourassa" if CES11_IDNUM == 2937
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 2941
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 2942
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 2948
replace fed11_name = "Bourassa" if CES11_IDNUM == 2966
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 2968
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 2971
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 2979
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 3009
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3023
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 3026
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3034
replace fed11_name = "Bourassa" if CES11_IDNUM == 3042
replace fed11_name = "Repentigny" if CES11_IDNUM == 3044
replace fed11_name = "Hochelaga" if CES11_IDNUM == 3048
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3052
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3058
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 3060
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 3061
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 3064
replace fed11_name = "Papineau" if CES11_IDNUM == 3067
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 3075
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 3078
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3102
replace fed11_name = "Outremont" if CES11_IDNUM == 3115
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 3124
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 3140
replace fed11_name = "Papineau" if CES11_IDNUM == 3142
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 3147
replace fed11_name = "Bourassa" if CES11_IDNUM == 3148
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3151
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3152
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3153
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 3155
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3159
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 3160
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 3162
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 3166
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 3170
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 3172
replace fed11_name = "Laval" if CES11_IDNUM == 3174
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3175
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 3177
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3181
replace fed11_name = "Bourassa" if CES11_IDNUM == 3182
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 3183
replace fed11_name = "Montcalm" if CES11_IDNUM == 3184
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 3187
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 3190
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 3198
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 3205
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3208
replace fed11_name = "Hochelaga" if CES11_IDNUM == 3209
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 3211
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 3222
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 3224
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3227
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 3229
replace fed11_name = "Hochelaga" if CES11_IDNUM == 3238
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3245
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 3246
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 3261
replace fed11_name = "Papineau" if CES11_IDNUM == 3268
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 3270
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 3276
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 3277
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 3279
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3283
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 3286
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 3288
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 3292
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3294
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 3304
replace fed11_name = "Outremont" if CES11_IDNUM == 3305
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 3308
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 3317
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3318
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 3319
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 3323
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 3326
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3328
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3330
replace fed11_name = "Papineau" if CES11_IDNUM == 3331
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 3340
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 3343
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 3354
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 3408
replace fed11_name = "Saint - Leonard - Saint - Michel" if CES11_IDNUM == 3413
replace fed11_name = "Laval" if CES11_IDNUM == 3414
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 3417
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3503
replace fed11_name = "Montcalm" if CES11_IDNUM == 3505
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 3509
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 3510
replace fed11_name = "Laval" if CES11_IDNUM == 3519
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 3520
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3524
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 3534
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3535
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3537
replace fed11_name = "Hochelaga" if CES11_IDNUM == 3538
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3543
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3544
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 3547
replace fed11_name = "Montcalm" if CES11_IDNUM == 3549
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 3551
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 3555
replace fed11_name = "Repentigny" if CES11_IDNUM == 3601
replace fed11_name = "Papineau" if CES11_IDNUM == 3602
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 3604
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 3605
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3612
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3614
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 3616
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 3706
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 3710
replace fed11_name = "Montcalm" if CES11_IDNUM == 3711
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3715
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 3717
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 3718
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 3722
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3724
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 3726
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3729
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 3731
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 3735
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3736
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 3737
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 3801
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 3802
replace fed11_name = "Laval" if CES11_IDNUM == 3805
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3810
replace fed11_name = "Laval" if CES11_IDNUM == 3811
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 3814
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 4006
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4017
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 4018
replace fed11_name = "Montcalm" if CES11_IDNUM == 4020
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 4104
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 4109
replace fed11_name = "Montcalm" if CES11_IDNUM == 4110
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 4111
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 4112
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 4113
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4115
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 4121
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4125
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 4127
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 4134
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 4203
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 4206
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 4209
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 4219
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 4227
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 4228
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4230
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 4231
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 4235
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 4236
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 4242
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 4247
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 4249
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 4254
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 4302
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 4309
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4312
replace fed11_name = "Bourassa" if CES11_IDNUM == 4316
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 4317
replace fed11_name = "Laval" if CES11_IDNUM == 4318
replace fed11_name = "Outremont" if CES11_IDNUM == 4323
replace fed11_name = "Repentigny" if CES11_IDNUM == 4324
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 4326
replace fed11_name = "Papineau" if CES11_IDNUM == 4330
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 4336
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 4341
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 4353
replace fed11_name = "Papineau" if CES11_IDNUM == 4354
replace fed11_name = "Outremont" if CES11_IDNUM == 4355
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4356
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 4403
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 4409
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4411
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4413
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 4416
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 4426
replace fed11_name = "Hochelaga" if CES11_IDNUM == 4428
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 4434
replace fed11_name = "Repentigny" if CES11_IDNUM == 4437
replace fed11_name = "Laval" if CES11_IDNUM == 4439
replace fed11_name = "Bourassa" if CES11_IDNUM == 4503
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 4504
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 4509
replace fed11_name = "Outremont" if CES11_IDNUM == 4511
replace fed11_name = "Montcalm" if CES11_IDNUM == 4512
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 4519
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 4524
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4525
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4526
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4527
replace fed11_name = "Montcalm" if CES11_IDNUM == 4534
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 4536
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 4538
replace fed11_name = "Saint - Leonard - Saint - Michel" if CES11_IDNUM == 4601
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 4610
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 4612
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4613
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4615
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4617
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 4621
replace fed11_name = "Repentigny" if CES11_IDNUM == 4626
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 4630
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 4634
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 4639
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 4701
replace fed11_name = "Laval" if CES11_IDNUM == 4703
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 4706
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4711
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 4720
replace fed11_name = "Papineau" if CES11_IDNUM == 4722
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 4725
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 4726
replace fed11_name = "Laval" if CES11_IDNUM == 4729
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 4739
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 4741
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4743
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4752
replace fed11_name = "Papineau" if CES11_IDNUM == 4754
replace fed11_name = "Bourassa" if CES11_IDNUM == 4802
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 4806
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 4810
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 4814
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 4817
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4823
replace fed11_name = "Hochelaga" if CES11_IDNUM == 4824
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 4825
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 4830
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 4850
replace fed11_name = "Saint - Bruno - Saint - Hubert                                        U" if CES11_IDNUM == 4852
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 4856
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 4859
replace fed11_name = "Repentigny" if CES11_IDNUM == 4917
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 4930
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 4931
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 4940
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4942
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 4944
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 4946
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 4950
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4959
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 4968
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4971
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 4972
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4974
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 4975
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 5004
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 5009
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 5011
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 5020
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 5025
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 5027
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 5040
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 5041
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 5048
replace fed11_name = "Laval" if CES11_IDNUM == 5050
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 5053
replace fed11_name = "Montcalm" if CES11_IDNUM == 5058
replace fed11_name = "Outremont" if CES11_IDNUM == 5102
replace fed11_name = "Bourassa" if CES11_IDNUM == 5104
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 5108
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 5111
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 5113
replace fed11_name = "Hochelaga" if CES11_IDNUM == 5119
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 5124
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 5127
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 5136
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 5139
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 5201
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 5203
replace fed11_name = "Bourassa" if CES11_IDNUM == 5207
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 5213
replace fed11_name = "Repentigny" if CES11_IDNUM == 5217
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 5223
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 5225
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 5302
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 5306
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 5312
replace fed11_name = "Repentigny" if CES11_IDNUM == 5313
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 5321
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 5324
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 5327
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 5336
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 5404
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 5420
replace fed11_name = "Laval" if CES11_IDNUM == 5502
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 5505
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 5509
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 5516
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 5605
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 5606
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 5607
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 5610
replace fed11_name = "Repentigny" if CES11_IDNUM == 5612
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 5613
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 5617
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 5618
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 5629
replace fed11_name = "Repentigny" if CES11_IDNUM == 5639
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 5702
replace fed11_name = "Bourassa" if CES11_IDNUM == 5703
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 5708
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 5721
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 5729
replace fed11_name = "Lac - Saint - Louis" if CES11_IDNUM == 5736
replace fed11_name = "Montcalm" if CES11_IDNUM == 5739
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 5752
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 5803
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 5810
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 5812
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 5813
replace fed11_name = "Repentigny" if CES11_IDNUM == 5816
replace fed11_name = "Montcalm" if CES11_IDNUM == 5821
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 5823
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 5828
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 5836
replace fed11_name = "Montcalm" if CES11_IDNUM == 5846
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 5847
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 5850
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 5855
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 5859
replace fed11_name = "Saint - Laurent - Cartierville" if CES11_IDNUM == 5907
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 5908
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 5917
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 5919
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 5920
replace fed11_name = "Montcalm" if CES11_IDNUM == 5933
replace fed11_name = "Hochelaga" if CES11_IDNUM == 5936
replace fed11_name = "Alfred - Pellan" if CES11_IDNUM == 6003
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 6006
replace fed11_name = "Saint - Leonard - Saint - Michel" if CES11_IDNUM == 6009
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 6011
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 6013
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 6014
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 6018
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 6029
replace fed11_name = "Repentigny" if CES11_IDNUM == 6038
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 6090
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 6103
replace fed11_name = "Longueuil - Pierre - Boucher" if CES11_IDNUM == 6109
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 6117
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 6121
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 6144
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 6145
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 6159
replace fed11_name = "Montcalm" if CES11_IDNUM == 6198
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 6202
replace fed11_name = "Repentigny" if CES11_IDNUM == 6204
replace fed11_name = "Repentigny" if CES11_IDNUM == 6220
replace fed11_name = "Laval" if CES11_IDNUM == 6237
replace fed11_name = "Outremont" if CES11_IDNUM == 6246
replace fed11_name = "Outremont" if CES11_IDNUM == 6248
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 6250
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 6252
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 6255
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 6259
replace fed11_name = "Shefford" if CES11_IDNUM == 6312
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 6315
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 6316
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 6318
replace fed11_name = "Montcalm" if CES11_IDNUM == 6319
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 6321
replace fed11_name = "Joliette" if CES11_IDNUM == 6332
replace fed11_name = "Quebe" if CES11_IDNUM == 6334
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 6343
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 6353
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6354
replace fed11_name = "Beauce" if CES11_IDNUM == 6367
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6370
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 6427
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 6431
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 6432
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 6436
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6446
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 6451
replace fed11_name = "Gatineau" if CES11_IDNUM == 6460
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 6475
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 6481
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6482
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 6489
replace fed11_name = "Manicouagan" if CES11_IDNUM == 6493
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 6505
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 6509
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6553
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6554
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 6555
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 6559
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 6560
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 6562
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 6567
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6570
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6606
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6607
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6622
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6676
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6677
replace fed11_name = "Shefford" if CES11_IDNUM == 6678
replace fed11_name = "Beauce" if CES11_IDNUM == 6679
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 6689
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 6696
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6700
replace fed11_name = "Beauce" if CES11_IDNUM == 6702
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6710
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 6720
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 6723
replace fed11_name = "Manicouagan" if CES11_IDNUM == 6727
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 6730
replace fed11_name = "Haute - Gaspesie - La Mitis - Matane - Mataped" if CES11_IDNUM == 6731
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 6734
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 6740
replace fed11_name = "Beauce" if CES11_IDNUM == 6742
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6744
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6745
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 6747
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 6749
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6750
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6751
replace fed11_name = "Beauce" if CES11_IDNUM == 6754
replace fed11_name = "Shefford" if CES11_IDNUM == 6756
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6758
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 6759
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 6760
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 6767
replace fed11_name = "Gatineau" if CES11_IDNUM == 6769
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 6770
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6771
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6774
replace fed11_name = "Drummond" if CES11_IDNUM == 6775
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6777
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6778
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 6779
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 6781
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 6786
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 6787
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6790
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 6793
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6796
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 6801
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 6804
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 6812
replace fed11_name = "Manicouagan" if CES11_IDNUM == 6813
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 6817
replace fed11_name = "Gatineau" if CES11_IDNUM == 6821
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 6825
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 6828
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 6832
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 6835
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 6838
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6848
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6851
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6855
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 6856
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 6857
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 6858
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 6863
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 6865
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6866
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 6868
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 6871
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 6877
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 6878
replace fed11_name = "Pontiac" if CES11_IDNUM == 6885
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 6891
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 6892
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 6902
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 6903
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 6904
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 6913
replace fed11_name = "Jonquiere - Alma                                                      E" if CES11_IDNUM == 6915
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6916
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 6926
replace fed11_name = "Drummond" if CES11_IDNUM == 6928
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 6936
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 6938
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 6939
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 6941
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6949
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 6953
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 6954
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 6957
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6958
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 6964
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 6969
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 6970
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 6980
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 6981
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 6984
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 6989
replace fed11_name = "Gatineau" if CES11_IDNUM == 6991
replace fed11_name = "Quebe" if CES11_IDNUM == 6996
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 6998
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 6999
replace fed11_name = "Gatineau" if CES11_IDNUM == 7000
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 7051
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7062
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7064
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 7066
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7067
replace fed11_name = "Drummond" if CES11_IDNUM == 7181
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 7182
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 7183
replace fed11_name = "Drummond" if CES11_IDNUM == 7185
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 7188
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7191
replace fed11_name = "Beauce" if CES11_IDNUM == 7198
replace fed11_name = "Montcalm" if CES11_IDNUM == 7204
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 7208
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 7216
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 7218
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 7220
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 7223
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 7225
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 7231
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 7233
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 7234
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 7238
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 7239
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 7240
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 7242
replace fed11_name = "Montcalm" if CES11_IDNUM == 7244
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 7246
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7248
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 7301
replace fed11_name = "Joliette" if CES11_IDNUM == 7302
replace fed11_name = "Pontiac" if CES11_IDNUM == 7303
replace fed11_name = "Shefford" if CES11_IDNUM == 7304
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 7310
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 7313
replace fed11_name = "Gatineau" if CES11_IDNUM == 7315
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 7317
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7325
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 7428
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 7429
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 7431
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 7432
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 7434
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 7451
replace fed11_name = "Drummond" if CES11_IDNUM == 7453
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 7454
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7458
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 7461
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 7462
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 7463
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 7466
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 7471
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 7474
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7554
replace fed11_name = "Shefford" if CES11_IDNUM == 7559
replace fed11_name = "Gatineau" if CES11_IDNUM == 7563
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 7567
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 7569
replace fed11_name = "Gatineau" if CES11_IDNUM == 7571
replace fed11_name = "Quebe" if CES11_IDNUM == 7575
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 7801
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 7804
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 7807
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7808
replace fed11_name = "Joliette" if CES11_IDNUM == 7810
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 7818
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 7825
replace fed11_name = "Pontiac" if CES11_IDNUM == 7926
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 7930
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 7939
replace fed11_name = "Haute - Gaspesie - La Mitis - Matane - Mataped" if CES11_IDNUM == 7942
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 7943
replace fed11_name = "Montcalm" if CES11_IDNUM == 7944
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 7945
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 7946
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 7947
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 7948
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 7952
replace fed11_name = "Quebe" if CES11_IDNUM == 7954
replace fed11_name = "Beauce" if CES11_IDNUM == 7955
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 7961
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 7965
replace fed11_name = "Quebe" if CES11_IDNUM == 7966
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 7967
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 7969
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 7972
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7973
replace fed11_name = "Haute - Gaspesie - La Mitis - Matane - Mataped" if CES11_IDNUM == 7975
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8051
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8056
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 8062
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8064
replace fed11_name = "Joliette" if CES11_IDNUM == 8066
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8072
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 8073
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 8074
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8076
replace fed11_name = "Manicouagan" if CES11_IDNUM == 8081
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8085
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8087
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 8096
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8100
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 8101
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8102
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 8103
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8104
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 8109
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8111
replace fed11_name = "Quebe" if CES11_IDNUM == 8122
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 8123
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8177
replace fed11_name = "Joliette" if CES11_IDNUM == 8182
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 8184
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 8186
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8187
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8194
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 8195
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 8201
replace fed11_name = "Gatineau" if CES11_IDNUM == 8208
replace fed11_name = "Shefford" if CES11_IDNUM == 8209
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 8215
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8222
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8223
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 8226
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8236
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8241
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 8246
replace fed11_name = "Pontiac" if CES11_IDNUM == 8304
replace fed11_name = "Manicouagan" if CES11_IDNUM == 8307
replace fed11_name = "Abitibi - Baie - James - Nunavik - Eeyou" if CES11_IDNUM == 8313
replace fed11_name = "Joliette" if CES11_IDNUM == 8318
replace fed11_name = "Abitibi - Baie - James - Nunavik - Eeyou" if CES11_IDNUM == 8322
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8323
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 8327
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8334
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8336
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 8340
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8343
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8345
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 8346
replace fed11_name = "Pontiac" if CES11_IDNUM == 8427
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8429
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8431
replace fed11_name = "Pontiac" if CES11_IDNUM == 8438
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8439
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 8447
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 8449
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8451
replace fed11_name = "Beauce" if CES11_IDNUM == 8453
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 8458
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8459
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8462
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 8463
replace fed11_name = "Beauce" if CES11_IDNUM == 8464
replace fed11_name = "Abitibi - Baie - James - Nunavik - Eeyou" if CES11_IDNUM == 8470
replace fed11_name = "Montcalm" if CES11_IDNUM == 8471
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 8472
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 8554
replace fed11_name = "Gatineau" if CES11_IDNUM == 8559
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8565
replace fed11_name = "Quebe" if CES11_IDNUM == 8567
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 8571
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 8572
replace fed11_name = "Beauce" if CES11_IDNUM == 8576
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 8577
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 8583
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8584
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 8592
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 8594
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 8684
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8688
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 8691
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 8697
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 8699
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8706
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8708
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8711
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8716
replace fed11_name = "Gatineau" if CES11_IDNUM == 8719
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 8720
replace fed11_name = "Joliette" if CES11_IDNUM == 8725
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8727
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8728
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8729
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8730
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 8740
replace fed11_name = "Quebe" if CES11_IDNUM == 8746
replace fed11_name = "Shefford" if CES11_IDNUM == 8747
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 8748
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 8802
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 8808
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8814
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 8815
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8818
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 8820
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8826
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 8829
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8831
replace fed11_name = "Haute - Gaspesie - La Mitis - Matane - Mataped" if CES11_IDNUM == 8833
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 8835
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8839
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8840
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 8842
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 8847
replace fed11_name = "Beauce" if CES11_IDNUM == 8849
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 8859
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 8862
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8865
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 8868
replace fed11_name = "Beauce" if CES11_IDNUM == 8872
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 8874
replace fed11_name = "Beauce" if CES11_IDNUM == 8875
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 8926
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 8928
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8934
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8939
replace fed11_name = "Drummond" if CES11_IDNUM == 8948
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 8952
replace fed11_name = "Shefford" if CES11_IDNUM == 8956
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 8958
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 8961
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8966
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 8967
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 8970
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 8973
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 8975
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8976
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 8978
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 8982
replace fed11_name = "Joliette" if CES11_IDNUM == 8984
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 8987
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8988
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 8990
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 8995
replace fed11_name = "Montcalm" if CES11_IDNUM == 8997
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 8998
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 9006
replace fed11_name = "Drummond" if CES11_IDNUM == 9012
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 9015
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 9020
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 9023
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9051
replace fed11_name = "Beauce" if CES11_IDNUM == 9055
replace fed11_name = "Quebe" if CES11_IDNUM == 9056
replace fed11_name = "Joliette" if CES11_IDNUM == 9059
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 9061
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 9063
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9068
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 9073
replace fed11_name = "Pontiac" if CES11_IDNUM == 9076
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 9078
replace fed11_name = "Shefford" if CES11_IDNUM == 9080
replace fed11_name = "Shefford" if CES11_IDNUM == 9081
replace fed11_name = "Manicouagan" if CES11_IDNUM == 9082
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9086
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 9089
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 9092
replace fed11_name = "Drummond" if CES11_IDNUM == 9096
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 9097
replace fed11_name = "Haute - Gaspesie - La Mitis - Matane - Mataped" if CES11_IDNUM == 9105
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 9112
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 9114
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 9116
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9117
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 9178
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9184
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 9187
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9199
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 9200
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 9202
replace fed11_name = "Joliette" if CES11_IDNUM == 9203
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 9205
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 9207
replace fed11_name = "Montcalm" if CES11_IDNUM == 9208
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 9209
replace fed11_name = "Gatineau" if CES11_IDNUM == 9211
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9219
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 9221
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 9222
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 9305
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9308
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 9312
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9313
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 9317
replace fed11_name = "Beauce" if CES11_IDNUM == 9318
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 9319
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9321
replace fed11_name = "Shefford" if CES11_IDNUM == 9339
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9344
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 9426
replace fed11_name = "Gatineau" if CES11_IDNUM == 9429
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9441
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9444
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 9446
replace fed11_name = "Montmorency - Charlevoix - Haute - Cote - Nord" if CES11_IDNUM == 9447
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 9451
replace fed11_name = "Manicouagan" if CES11_IDNUM == 9458
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 9466
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9551
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 9552
replace fed11_name = "Joliette" if CES11_IDNUM == 9556
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9557
replace fed11_name = "Quebe" if CES11_IDNUM == 9559
replace fed11_name = "Gatineau" if CES11_IDNUM == 9562
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 9563
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 9564
replace fed11_name = "Montcalm" if CES11_IDNUM == 9565
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 9567
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 9568
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 9569
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 9571
replace fed11_name = "Drummond" if CES11_IDNUM == 9689
replace fed11_name = "Montcalm" if CES11_IDNUM == 9697
replace fed11_name = "Joliette" if CES11_IDNUM == 9700
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 9703
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 9705
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 9713
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 9719
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9801
replace fed11_name = "Drummond" if CES11_IDNUM == 9804
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 9812
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 9814
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 9815
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 9818
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9821
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 9823
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 9826
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 9830
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9834
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 9836
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 9838
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 9842
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 9931
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9935
replace fed11_name = "Beauce" if CES11_IDNUM == 9941
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 9947
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 9949
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9951
replace fed11_name = "Shefford" if CES11_IDNUM == 9953
replace fed11_name = "Abitibi - Baie - James - Nunavik - Eeyou" if CES11_IDNUM == 9962
replace fed11_name = "Manicouagan" if CES11_IDNUM == 9963
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 9967
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 9970
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 9975
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 9979
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 9994
replace fed11_name = "Shefford" if CES11_IDNUM == 9995
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 9999
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 10057
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 10065
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 10066
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 10068
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 10069
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 10073
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 10075
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 10080
replace fed11_name = "Beauce" if CES11_IDNUM == 10085
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 10086
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 10088
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 10092
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 10100
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 10119
replace fed11_name = "Drummond" if CES11_IDNUM == 10124
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 10125
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 10176
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 10177
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 10180
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 10188
replace fed11_name = "Drummond" if CES11_IDNUM == 10196
replace fed11_name = "Saint - Hyacinthe - Bagot" if CES11_IDNUM == 10200
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 10209
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 10211
replace fed11_name = "Manicouagan" if CES11_IDNUM == 10213
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 10301
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 10302
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 10305
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 10307
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 10311
replace fed11_name = "Bas - Richelieu - Nicolet - Becancour" if CES11_IDNUM == 10315
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 10317
replace fed11_name = "Gatineau" if CES11_IDNUM == 10318
replace fed11_name = "Abitibi - Temiscamingue" if CES11_IDNUM == 10322
replace fed11_name = "Hull - Aylmer                                                         E" if CES11_IDNUM == 10332
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 10334
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 10336
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 10337
replace fed11_name = "Shefford" if CES11_IDNUM == 10338
replace fed11_name = "Montcalm" if CES11_IDNUM == 10341
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 10344
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 10346
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 10436
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 10441
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 10443
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 10444
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 10446
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 10450
replace fed11_name = "Beauharnois - Salaberry" if CES11_IDNUM == 10452
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 10453
replace fed11_name = "Shefford" if CES11_IDNUM == 10455
replace fed11_name = "Roberval - Lac - Saint - Jean" if CES11_IDNUM == 10507
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 10509
replace fed11_name = "Quebe" if CES11_IDNUM == 10546
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 10552
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 10565
replace fed11_name = "Rimouski - Neigette - Temiscouata - Les Basque" if CES11_IDNUM == 10572
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 10580
replace fed11_name = "Pontiac" if CES11_IDNUM == 10599
replace fed11_name = "Portneuf - Jacques - Cartier" if CES11_IDNUM == 10620
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 10625
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 10682
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 10696
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 10702
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 10715
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 10724
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 10727
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 10752
replace fed11_name = "Oakville" if CES11_IDNUM == 10767
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 10785
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 10789
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 10796
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 10799
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 10801
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 10803
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 10832
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 10833
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 10845
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 10847
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 10857
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 10878
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 10884
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 10895
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 10898
replace fed11_name = "Halton" if CES11_IDNUM == 10908
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 10910
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 10917
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 10919
replace fed11_name = "Vaughan" if CES11_IDNUM == 10930
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 10943
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 10944
replace fed11_name = "Vaughan" if CES11_IDNUM == 10952
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 10978
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 10983
replace fed11_name = "Oakville" if CES11_IDNUM == 11006
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 11007
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 11025
replace fed11_name = "Thornhill" if CES11_IDNUM == 11032
replace fed11_name = "Oakville" if CES11_IDNUM == 11037
replace fed11_name = "Thornhill" if CES11_IDNUM == 11044
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 11050
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 11055
replace fed11_name = "Willowdale" if CES11_IDNUM == 11063
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 11076
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 11089
replace fed11_name = "Scarborough Southwest / Scarborough - Sud - Ouest" if CES11_IDNUM == 11101
replace fed11_name = "Thornhill" if CES11_IDNUM == 11103
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 11107
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 11116
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11118
replace fed11_name = "York West / York - Ouest" if CES11_IDNUM == 11123
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11125
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11135
replace fed11_name = "York West / York - Ouest" if CES11_IDNUM == 11141
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 11142
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11168
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 11170
replace fed11_name = "Vaughan" if CES11_IDNUM == 11172
replace fed11_name = "Vaughan" if CES11_IDNUM == 11192
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 11199
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 11213
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 11214
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 11244
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 11285
replace fed11_name = "Vaughan" if CES11_IDNUM == 11289
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 11295
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 11297
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 11302
replace fed11_name = "Oakville" if CES11_IDNUM == 11303
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 11311
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 11317
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 11323
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 11325
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11328
replace fed11_name = "St. Paul's" if CES11_IDNUM == 11331
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 11332
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 11365
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11372
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11374
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 11375
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 11377
replace fed11_name = "York South - Weston / York - Sud - Weston" if CES11_IDNUM == 11397
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 11400
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 11410
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 11420
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 11440
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 11448
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 11450
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11456
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 11470
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11472
replace fed11_name = "Oakville" if CES11_IDNUM == 11475
replace fed11_name = "Willowdale" if CES11_IDNUM == 11478
replace fed11_name = "St. Paul's" if CES11_IDNUM == 11481
replace fed11_name = "St. Paul's" if CES11_IDNUM == 11489
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 11496
replace fed11_name = "Oakville" if CES11_IDNUM == 11508
replace fed11_name = "Scarborough Southwest / Scarborough - Sud - Ouest" if CES11_IDNUM == 11511
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 11515
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 11524
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 11528
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11536
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 11538
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 11539
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11541
replace fed11_name = "Halton" if CES11_IDNUM == 11591
replace fed11_name = "Thornhill" if CES11_IDNUM == 11623
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11625
replace fed11_name = "Vaughan" if CES11_IDNUM == 11641
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 11649
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 11650
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11669
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11674
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 11681
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 11684
replace fed11_name = "Etobicoke North / Etobicoke - Nord" if CES11_IDNUM == 11691
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 11706
replace fed11_name = "Davenport" if CES11_IDNUM == 11710
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 11729
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 11730
replace fed11_name = "Willowdale" if CES11_IDNUM == 11733
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11743
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 11744
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 11745
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 11772
replace fed11_name = "Vaughan" if CES11_IDNUM == 11779
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 11801
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 11816
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11825
replace fed11_name = "St. Paul's" if CES11_IDNUM == 11836
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11851
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 11852
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 11883
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 11896
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11897
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 11900
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 11901
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 11915
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 11934
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 11956
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 11967
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 11972
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 11974
replace fed11_name = "Mississauga South / Mississauga - Sud" if CES11_IDNUM == 11982
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11997
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12001
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 12003
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12034
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 12036
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 12044
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 12045
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 12060
replace fed11_name = "Etobicoke North / Etobicoke - Nord" if CES11_IDNUM == 12062
replace fed11_name = "Halton" if CES11_IDNUM == 12065
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12069
replace fed11_name = "Vaughan" if CES11_IDNUM == 12075
replace fed11_name = "Willowdale" if CES11_IDNUM == 12101
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 12112
replace fed11_name = "Oakville" if CES11_IDNUM == 12113
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 12120
replace fed11_name = "Davenport" if CES11_IDNUM == 12133
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 12139
replace fed11_name = "Vaughan" if CES11_IDNUM == 12141
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 12142
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 12179
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12180
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12184
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12190
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 12193
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 12204
replace fed11_name = "Halton" if CES11_IDNUM == 12223
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 12227
replace fed11_name = "Davenport" if CES11_IDNUM == 12228
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 12299
replace fed11_name = "Thornhill" if CES11_IDNUM == 12301
replace fed11_name = "Davenport" if CES11_IDNUM == 12306
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12345
replace fed11_name = "Davenport" if CES11_IDNUM == 12352
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 12363
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 12369
replace fed11_name = "Davenport" if CES11_IDNUM == 12376
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 12378
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12379
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 12385
replace fed11_name = "Vaughan" if CES11_IDNUM == 12403
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 12405
replace fed11_name = "Vaughan" if CES11_IDNUM == 12407
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12408
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12414
replace fed11_name = "Thornhill" if CES11_IDNUM == 12415
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 12437
replace fed11_name = "Vaughan" if CES11_IDNUM == 12439
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 12441
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12453
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12457
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12459
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12480
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 12498
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 12506
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 12511
replace fed11_name = "York West / York - Ouest" if CES11_IDNUM == 12515
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 12518
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12523
replace fed11_name = "Durham" if CES11_IDNUM == 12527
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12534
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 12558
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 12585
replace fed11_name = "Davenport" if CES11_IDNUM == 12590
replace fed11_name = "Oakville" if CES11_IDNUM == 12591
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 12603
replace fed11_name = "Mississauga East - Cooksville / Mississauga - Est - Cooksville" if CES11_IDNUM == 12632
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12636
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12643
replace fed11_name = "Willowdale" if CES11_IDNUM == 12648
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12652
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 12656
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12661
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12667
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12672
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 12673
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 12675
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12685
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12701
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 12703
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 12709
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 12712
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 12717
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 12729
replace fed11_name = "York West / York - Ouest" if CES11_IDNUM == 12737
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 12752
replace fed11_name = "Willowdale" if CES11_IDNUM == 12755
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 12759
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 12779
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 12788
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 12790
replace fed11_name = "St. Paul's" if CES11_IDNUM == 12794
replace fed11_name = "Brampton West / Brampton - Ouest" if CES11_IDNUM == 12796
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12799
replace fed11_name = "Mississauga East - Cooksville / Mississauga - Est - Cooksville" if CES11_IDNUM == 12811
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 12815
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 12818
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 12819
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 12822
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12837
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12839
replace fed11_name = "Willowdale" if CES11_IDNUM == 12854
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12855
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 12867
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12874
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 12884
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 12885
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 12905
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 12906
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 12911
replace fed11_name = "Thornhill" if CES11_IDNUM == 12915
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 12919
replace fed11_name = "York South - Weston / York - Sud - Weston" if CES11_IDNUM == 12921
replace fed11_name = "Halton" if CES11_IDNUM == 12933
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12935
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 12941
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 12953
replace fed11_name = "Thornhill" if CES11_IDNUM == 12955
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 12961
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 12964
replace fed11_name = "Vaughan" if CES11_IDNUM == 12974
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 12984
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 12985
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 13003
replace fed11_name = "St. Paul's" if CES11_IDNUM == 13007
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 13010
replace fed11_name = "Oakville" if CES11_IDNUM == 13013
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 13026
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 13028
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 13038
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 13043
replace fed11_name = "Thornhill" if CES11_IDNUM == 13045
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 13048
replace fed11_name = "Bramalea - Gore - Malton" if CES11_IDNUM == 13051
replace fed11_name = "Mississauga South / Mississauga - Sud" if CES11_IDNUM == 13052
replace fed11_name = "York West / York - Ouest" if CES11_IDNUM == 13056
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 13078
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 13079
replace fed11_name = "St. Paul's" if CES11_IDNUM == 13086
replace fed11_name = "Vaughan" if CES11_IDNUM == 13095
replace fed11_name = "Willowdale" if CES11_IDNUM == 13106
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 13113
replace fed11_name = "York South - Weston / York - Sud - Weston" if CES11_IDNUM == 13127
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 13152
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 13166
replace fed11_name = "Halton" if CES11_IDNUM == 13171
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 13183
replace fed11_name = "Scarborough Southwest / Scarborough - Sud - Ouest" if CES11_IDNUM == 13186
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 13190
replace fed11_name = "Scarborough - Guildwood" if CES11_IDNUM == 13244
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 13246
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 13259
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 13262
replace fed11_name = "Willowdale" if CES11_IDNUM == 13278
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 13285
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 13301
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 13302
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 13313
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 13314
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 13315
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 13321
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 13323
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 13325
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 13335
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 13338
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13345
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 13362
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior - Nord" if CES11_IDNUM == 13363
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 13368
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13376
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 13378
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13402
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 13404
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 13406
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 13407
replace fed11_name = "Sudbury" if CES11_IDNUM == 13436
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 13439
replace fed11_name = "Calgary West / Calgary-Ouest" if CES11_IDNUM == 13440
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 13445
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 13449
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 13462
replace fed11_name = "Barrie" if CES11_IDNUM == 13472
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 13479
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 13501
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 13502
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 13519
replace fed11_name = "Welland" if CES11_IDNUM == 13524
replace fed11_name = "Durham" if CES11_IDNUM == 13533
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 13535
replace fed11_name = "Sudbury" if CES11_IDNUM == 13539
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 13542
replace fed11_name = "Welland" if CES11_IDNUM == 13547
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 13557
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 13572
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 13574
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 13576
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 13585
replace fed11_name = "Oshawa" if CES11_IDNUM == 13587
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 13592
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 13593
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 13599
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 13607
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 13608
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 13614
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 13629
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 13633
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 13635
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 13645
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 13657
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 13659
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 13665
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 13669
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 13671
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 13672
replace fed11_name = "Welland" if CES11_IDNUM == 13679
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 13684
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 13688
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 13692
replace fed11_name = "Kenora" if CES11_IDNUM == 13699
replace fed11_name = "Peterborough" if CES11_IDNUM == 13714
replace fed11_name = "Oshawa" if CES11_IDNUM == 13715
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 13724
replace fed11_name = "Peterborough" if CES11_IDNUM == 13743
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 13749
replace fed11_name = "Essex" if CES11_IDNUM == 13754
replace fed11_name = "Peterborough" if CES11_IDNUM == 13761
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 13766
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 13767
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 13768
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 13777
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 13778
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 13779
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 13784
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 13785
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 13789
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13805
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 13813
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 13814
replace fed11_name = "Oshawa" if CES11_IDNUM == 13817
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 13823
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 13824
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior - Nord" if CES11_IDNUM == 13826
replace fed11_name = "Cambridge" if CES11_IDNUM == 13829
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 13833
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 13834
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 13851
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 13881
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 13898
replace fed11_name = "Guelph" if CES11_IDNUM == 13907
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 13908
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 13914
replace fed11_name = "Welland" if CES11_IDNUM == 13920
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 13923
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 13925
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 13936
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 13939
replace fed11_name = "Brant" if CES11_IDNUM == 13940
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 13950
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 13951
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 13954
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 13958
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 13959
replace fed11_name = "Cambridge" if CES11_IDNUM == 13968
replace fed11_name = "Guelph" if CES11_IDNUM == 13970
replace fed11_name = "Oxford" if CES11_IDNUM == 13971
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 13976
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 13979
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 13986
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 13988
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 13990
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 13997
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 13999
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 14005
replace fed11_name = "Essex" if CES11_IDNUM == 14006
replace fed11_name = "Peterborough" if CES11_IDNUM == 14008
replace fed11_name = "Burlington" if CES11_IDNUM == 14012
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 14013
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 14014
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 14015
replace fed11_name = "Welland" if CES11_IDNUM == 14017
replace fed11_name = "Durham" if CES11_IDNUM == 14018
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 14025
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 14027
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 14029
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 14038
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 14044
replace fed11_name = "Oxford" if CES11_IDNUM == 14054
replace fed11_name = "Essex" if CES11_IDNUM == 14062
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 14065
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 14069
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 14075
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 14077
replace fed11_name = "Oxford" if CES11_IDNUM == 14078
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 14106
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 14114
replace fed11_name = "Welland" if CES11_IDNUM == 14124
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 14125
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 14128
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 14130
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 14131
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 14135
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 14145
replace fed11_name = "Barrie" if CES11_IDNUM == 14148
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 14160
replace fed11_name = "Cambridge" if CES11_IDNUM == 14163
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 14164
replace fed11_name = "Brant" if CES11_IDNUM == 14167
replace fed11_name = "Essex" if CES11_IDNUM == 14172
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 14179
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 14202
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 14211
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 14222
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 14227
replace fed11_name = "Guelph" if CES11_IDNUM == 14229
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 14230
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 14232
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 14233
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 14241
replace fed11_name = "Brant" if CES11_IDNUM == 14251
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 14254
replace fed11_name = "Guelph" if CES11_IDNUM == 14258
replace fed11_name = "Oshawa" if CES11_IDNUM == 14259
replace fed11_name = "Welland" if CES11_IDNUM == 14268
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 14271
replace fed11_name = "Halton" if CES11_IDNUM == 14272
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 14309
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 14323
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 14327
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 14331
replace fed11_name = "Brant" if CES11_IDNUM == 14351
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 14362
replace fed11_name = "Oxford" if CES11_IDNUM == 14376
replace fed11_name = "Burlington" if CES11_IDNUM == 14378
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14405
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 14406
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 14410
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 14424
replace fed11_name = "Oxford" if CES11_IDNUM == 14426
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 14433
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14435
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 14441
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 14446
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 14450
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 14453
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 14457
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 14459
replace fed11_name = "Peterborough" if CES11_IDNUM == 14520
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 14527
replace fed11_name = "Durham" if CES11_IDNUM == 14531
replace fed11_name = "Oshawa" if CES11_IDNUM == 14540
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior - Nord" if CES11_IDNUM == 14545
replace fed11_name = "Oxford" if CES11_IDNUM == 14550
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 14558
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 14561
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 14567
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 14575
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 14577
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 14602
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 14605
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 14607
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 14617
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 14621
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 14625
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14627
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 14632
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 14634
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 14637
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 14646
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 14649
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 14650
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 14656
replace fed11_name = "Essex" if CES11_IDNUM == 14660
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 14702
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 14711
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 14718
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 14724
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 14740
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 14747
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 14760
replace fed11_name = "Guelph" if CES11_IDNUM == 14765
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 14767
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 14772
replace fed11_name = "Welland" if CES11_IDNUM == 14776
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 14777
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 14779
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 14811
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14815
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 14819
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14822
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 14835
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 14838
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 14839
replace fed11_name = "Durham" if CES11_IDNUM == 14845
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 14847
replace fed11_name = "Essex" if CES11_IDNUM == 14850
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 14852
replace fed11_name = "Halton" if CES11_IDNUM == 14858
replace fed11_name = "Durham" if CES11_IDNUM == 14895
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 14907
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 14910
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 14913
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 14941
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 14943
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 14947
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 14953
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 14960
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 14984
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 14997
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 15001
replace fed11_name = "Guelph" if CES11_IDNUM == 15004
replace fed11_name = "Burlington" if CES11_IDNUM == 15009
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 15010
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 15021
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 15026
replace fed11_name = "Halton" if CES11_IDNUM == 15032
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 15037
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 15038
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 15041
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 15047
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 15056
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 15058
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 15059
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 15062
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15064
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 15065
replace fed11_name = "Barrie" if CES11_IDNUM == 15067
replace fed11_name = "Barrie" if CES11_IDNUM == 15069
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 15072
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 15078
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 15079
replace fed11_name = "Oxford" if CES11_IDNUM == 15081
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 15088
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 15093
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 15102
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 15113
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 15114
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15115
replace fed11_name = "Cambridge" if CES11_IDNUM == 15117
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 15120
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 15126
replace fed11_name = "Brant" if CES11_IDNUM == 15130
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15132
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 15137
replace fed11_name = "Peterborough" if CES11_IDNUM == 15139
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 15144
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 15201
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 15202
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 15205
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15214
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 15221
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15224
replace fed11_name = "Cambridge" if CES11_IDNUM == 15230
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 15231
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 15233
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 15238
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 15266
replace fed11_name = "St. Catharines" if CES11_IDNUM == 15268
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 15275
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15304
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 15310
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 15314
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 15328
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 15334
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 15349
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 15350
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15351
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 15357
replace fed11_name = "Burlington" if CES11_IDNUM == 15362
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 15363
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 15377
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15406
replace fed11_name = "Oxford" if CES11_IDNUM == 15409
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 15414
replace fed11_name = "Peterborough" if CES11_IDNUM == 15418
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 15435
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 15436
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 15437
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 15449
replace fed11_name = "Guelph" if CES11_IDNUM == 15450
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 15451
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 15456
replace fed11_name = "Oxford" if CES11_IDNUM == 15457
replace fed11_name = "Brant" if CES11_IDNUM == 15465
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 15470
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 15471
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 15475
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 15503
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15510
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15517
replace fed11_name = "Barrie" if CES11_IDNUM == 15521
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15524
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 15525
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 15526
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 15528
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 15529
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 15530
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 15532
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 15542
replace fed11_name = "Peterborough" if CES11_IDNUM == 15545
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15546
replace fed11_name = "Brant" if CES11_IDNUM == 15551
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 15563
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15567
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 15568
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15570
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 15576
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 15578
replace fed11_name = "Burlington" if CES11_IDNUM == 15579
replace fed11_name = "Brant" if CES11_IDNUM == 15607
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 15608
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 15617
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 15620
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15622
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 15625
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 15626
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 15627
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 15630
replace fed11_name = "Oshawa" if CES11_IDNUM == 15637
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 15638
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 15639
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 15648
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 15649
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15650
replace fed11_name = "St. Catharines" if CES11_IDNUM == 15659
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 15666
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 15674
replace fed11_name = "Burlington" if CES11_IDNUM == 15678
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 15701
replace fed11_name = "Sudbury" if CES11_IDNUM == 15703
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 15706
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 15710
replace fed11_name = "Welland" if CES11_IDNUM == 15720
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 15723
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 15733
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 15736
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15742
replace fed11_name = "Essex" if CES11_IDNUM == 15752
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 15758
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 15760
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 15765
replace fed11_name = "Guelph" if CES11_IDNUM == 15767
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15771
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 15774
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15776
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 15779
replace fed11_name = "Sudbury" if CES11_IDNUM == 15815
replace fed11_name = "Peterborough" if CES11_IDNUM == 15818
replace fed11_name = "Oshawa" if CES11_IDNUM == 15825
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 15826
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 15829
replace fed11_name = "Cambridge" if CES11_IDNUM == 15830
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 15834
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 15837
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 15839
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 15841
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15843
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 15846
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 15862
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 15865
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 15877
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 15901
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 15905
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 15909
replace fed11_name = "Burlington" if CES11_IDNUM == 15914
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 15921
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 15924
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 15925
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 15929
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 15930
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 15940
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 15946
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 15947
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 15949
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 15957
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 16004
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 16009
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 16010
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 16023
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 16032
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 16053
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16056
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 16058
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 16064
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 16067
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 16069
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 16080
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 16106
replace fed11_name = "Oxford" if CES11_IDNUM == 16110
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 16115
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16117
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 16118
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16123
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 16126
replace fed11_name = "Brant" if CES11_IDNUM == 16130
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 16132
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 16138
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 16146
replace fed11_name = "Peterborough" if CES11_IDNUM == 16150
replace fed11_name = "Brant" if CES11_IDNUM == 16152
replace fed11_name = "Durham" if CES11_IDNUM == 16159
replace fed11_name = "Cambridge" if CES11_IDNUM == 16161
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 16165
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 16167
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 16170
replace fed11_name = "Oxford" if CES11_IDNUM == 16173
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 16177
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16202
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 16203
replace fed11_name = "Durham" if CES11_IDNUM == 16213
replace fed11_name = "Oxford" if CES11_IDNUM == 16220
replace fed11_name = "St. Catharines" if CES11_IDNUM == 16222
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 16225
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 16226
replace fed11_name = "" if CES11_IDNUM == 16229
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 16231
replace fed11_name = "Oshawa" if CES11_IDNUM == 16237
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 16243
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 16248
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 16251
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 16252
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 16256
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 16260
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 16262
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 16266
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 16267
replace fed11_name = "Essex" if CES11_IDNUM == 16269
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 16272
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 16273
replace fed11_name = "Welland" if CES11_IDNUM == 16275
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 16287
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 16297
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 16298
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 16300
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 16302
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 16304
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 16310
replace fed11_name = "Brant" if CES11_IDNUM == 16311
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 16313
replace fed11_name = "Oshawa" if CES11_IDNUM == 16317
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 16319
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 16322
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 16323
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 16327
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 16328
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 16329
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 16342
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 16348
replace fed11_name = "" if CES11_IDNUM == 16361
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 16376
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 16404
replace fed11_name = "Brant" if CES11_IDNUM == 16407
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 16409
replace fed11_name = "Cambridge" if CES11_IDNUM == 16411
replace fed11_name = "Brant" if CES11_IDNUM == 16421
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 16425
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 16427
replace fed11_name = "Windsor West / Windsor - Ouest" if CES11_IDNUM == 16438
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 16442
replace fed11_name = "Cambridge" if CES11_IDNUM == 16451
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 16457
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 16458
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 16501
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 16520
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16523
replace fed11_name = "Durham" if CES11_IDNUM == 16525
replace fed11_name = "Cambridge" if CES11_IDNUM == 16542
replace fed11_name = "Peterborough" if CES11_IDNUM == 16550
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 16553
replace fed11_name = "Guelph" if CES11_IDNUM == 16554
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 16556
replace fed11_name = "Burlington" if CES11_IDNUM == 16557
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 16569
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 16577
replace fed11_name = "Durham" if CES11_IDNUM == 16578
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 16602
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 16603
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 16611
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 16614
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 16616
replace fed11_name = "Sudbury" if CES11_IDNUM == 16623
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 16628
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 16629
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 16630
replace fed11_name = "Peterborough" if CES11_IDNUM == 16632
replace fed11_name = "Brant" if CES11_IDNUM == 16633
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 16643
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 16645
replace fed11_name = "Sudbury" if CES11_IDNUM == 16650
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 16651
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 16656
replace fed11_name = "Kenora" if CES11_IDNUM == 16658
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 16702
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 16703
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 16704
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 16710
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 16715
replace fed11_name = "Burlington" if CES11_IDNUM == 16716
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 16721
replace fed11_name = "Oxford" if CES11_IDNUM == 16726
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 16734
replace fed11_name = "Barrie" if CES11_IDNUM == 16738
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 16753
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16801
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 16806
replace fed11_name = "Provencher" if CES11_IDNUM == 16807
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 16817
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 16821
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 16829
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 16830
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 16833
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 16835
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 16837
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 16846
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 16848
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16852
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 16854
replace fed11_name = "Provencher" if CES11_IDNUM == 16860
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16862
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 16864
replace fed11_name = "Winnipeg Centre / Winnipeg - Centre" if CES11_IDNUM == 16877
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 16878
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 16886
replace fed11_name = "Winnipeg Centre / Winnipeg - Centre" if CES11_IDNUM == 16894
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 16897
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16898
replace fed11_name = "Provencher" if CES11_IDNUM == 16907
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 16924
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 16933
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 16934
replace fed11_name = "Winnipeg Centre / Winnipeg - Centre" if CES11_IDNUM == 16948
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 16950
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16961
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 16966
replace fed11_name = "Winnipeg Centre / Winnipeg - Centre" if CES11_IDNUM == 16972
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 16973
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 16977
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 16993
replace fed11_name = "Winnipeg North / Winnipeg - Nord" if CES11_IDNUM == 17004
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17005
replace fed11_name = "Churchill" if CES11_IDNUM == 17012
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17014
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17016
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17019
replace fed11_name = "Churchill" if CES11_IDNUM == 17020
replace fed11_name = "Winnipeg Centre / Winnipeg - Centre" if CES11_IDNUM == 17037
replace fed11_name = "Provencher" if CES11_IDNUM == 17038
replace fed11_name = "Provencher" if CES11_IDNUM == 17041
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17047
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17056
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17061
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17063
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17064
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17067
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17102
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 17108
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17113
replace fed11_name = "Churchill" if CES11_IDNUM == 17114
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17115
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17128
replace fed11_name = "Provencher" if CES11_IDNUM == 17156
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17158
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17176
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17179
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17183
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17188
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17207
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17226
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17253
replace fed11_name = "Churchill" if CES11_IDNUM == 17259
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17261
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17281
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17285
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17286
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17288
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17292
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17294
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17302
replace fed11_name = "Winnipeg North / Winnipeg - Nord" if CES11_IDNUM == 17305
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17308
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 17313
replace fed11_name = "Provencher" if CES11_IDNUM == 17317
replace fed11_name = "Churchill" if CES11_IDNUM == 17319
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17328
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17340
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 17352
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17354
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17361
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17367
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17379
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17383
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17387
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17395
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17435
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17438
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 17454
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17455
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17482
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17484
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 17506
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17511
replace fed11_name = "Winnipeg North / Winnipeg - Nord" if CES11_IDNUM == 17512
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17516
replace fed11_name = "Provencher" if CES11_IDNUM == 17517
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17527
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17528
replace fed11_name = "Churchill" if CES11_IDNUM == 17534
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17539
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17540
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17541
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17557
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17558
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17559
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17560
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17562
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 17565
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17576
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17586
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17609
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17613
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17614
replace fed11_name = "Churchill" if CES11_IDNUM == 17629
replace fed11_name = "Provencher" if CES11_IDNUM == 17630
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17632
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17654
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17657
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17658
replace fed11_name = "Provencher" if CES11_IDNUM == 17662
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17665
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17676
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17681
replace fed11_name = "Wascana" if CES11_IDNUM == 17682
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 17691
replace fed11_name = "Palliser" if CES11_IDNUM == 17692
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 17694
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17710
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17716
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17717
replace fed11_name = "Palliser" if CES11_IDNUM == 17733
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 17735
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 17742
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 17750
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17753
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 17756
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 17762
replace fed11_name = "Wascana" if CES11_IDNUM == 17764
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 17765
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17769
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17770
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17778
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 17779
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17783
replace fed11_name = "Prince Albert" if CES11_IDNUM == 17784
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17786
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17789
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17790
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17800
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17803
replace fed11_name = "Prince Albert" if CES11_IDNUM == 17805
replace fed11_name = "Palliser" if CES11_IDNUM == 17807
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 17810
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 17812
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 17816
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 17822
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17824
replace fed11_name = "Wascana" if CES11_IDNUM == 17825
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17827
replace fed11_name = "Palliser" if CES11_IDNUM == 17836
replace fed11_name = "Wascana" if CES11_IDNUM == 17852
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 17854
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 17855
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17856
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17863
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17866
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17867
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17870
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 17878
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 17883
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17891
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17901
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17906
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 17917
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 17918
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17931
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 17932
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17935
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17939
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 17952
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17955
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17956
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17979
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17980
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 17982
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 17985
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17989
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18001
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18002
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18003
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18005
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18012
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18028
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 18030
replace fed11_name = "Desneth? - Missinippi - Churchill River / Desneth? - Missinippi" if CES11_IDNUM == 18032
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18035
replace fed11_name = "Wascana" if CES11_IDNUM == 18036
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18037
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18038
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18044
replace fed11_name = "Wascana" if CES11_IDNUM == 18045
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 18054
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18060
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18062
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18065
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18080
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18083
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18093
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18101
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 18102
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18103
replace fed11_name = "Palliser" if CES11_IDNUM == 18112
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18115
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18117
replace fed11_name = "Palliser" if CES11_IDNUM == 18120
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18129
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18132
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18137
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18138
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18139
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18151
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18153
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18154
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18155
replace fed11_name = "Palliser" if CES11_IDNUM == 18164
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18165
replace fed11_name = "Wascana" if CES11_IDNUM == 18184
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18211
replace fed11_name = "Wascana" if CES11_IDNUM == 18244
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 18252
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18257
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18260
replace fed11_name = "Wascana" if CES11_IDNUM == 18263
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18277
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18280
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18314
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18317
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18320
replace fed11_name = "Wascana" if CES11_IDNUM == 18326
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18327
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18329
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 18333
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18334
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18338
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18340
replace fed11_name = "Palliser" if CES11_IDNUM == 18344
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18389
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18401
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18404
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18424
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18432
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18436
replace fed11_name = "Wascana" if CES11_IDNUM == 18452
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18456
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18459
replace fed11_name = "Wascana" if CES11_IDNUM == 18462
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18465
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18470
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18478
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 18480
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 18481
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18482
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18488
replace fed11_name = "Prince Albert" if CES11_IDNUM == 18529
replace fed11_name = "Desneth? - Missinippi - Churchill River / Desneth? - Missinippi" if CES11_IDNUM == 18532
replace fed11_name = "Palliser" if CES11_IDNUM == 18539
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18541
replace fed11_name = "Edmonton - Spruce Grove" if CES11_IDNUM == 18562
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18566
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18568
replace fed11_name = "Calgary West / Calgary - Ouest" if CES11_IDNUM == 18569
replace fed11_name = "Edmonton - Mill Woods - Beaumont" if CES11_IDNUM == 18577
replace fed11_name = "Calgary West / Calgary - Ouest" if CES11_IDNUM == 18585
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18591
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18592
replace fed11_name = "Wild Rose" if CES11_IDNUM == 18597
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 18605
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18612
replace fed11_name = "Edmonton - Mill Woods - Beaumont" if CES11_IDNUM == 18614
replace fed11_name = "Calgary Centre - North / Calgary - Centre - Nord" if CES11_IDNUM == 18616
replace fed11_name = "Edmonton - Spruce Grove" if CES11_IDNUM == 18631
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18632
replace fed11_name = "Edmonton - Strathcona" if CES11_IDNUM == 18634
replace fed11_name = "Calgary Northeast / Calgary - Nord - Est" if CES11_IDNUM == 18639
replace fed11_name = "Calgary West / Calgary - Ouest" if CES11_IDNUM == 18643
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18656
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18657
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18659
replace fed11_name = "Calgary East / Calgary - Est" if CES11_IDNUM == 18660
replace fed11_name = "Calgary Southwest / Calgary - Sud - Ouest" if CES11_IDNUM == 18662
replace fed11_name = "Edmonton East / Edmonton - Est" if CES11_IDNUM == 18695
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 18701
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18704
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18732
replace fed11_name = "Calgary Northeast / Calgary - Nord - Est" if CES11_IDNUM == 18752
replace fed11_name = "Calgary Northeast / Calgary - Nord - Est" if CES11_IDNUM == 18777
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18778
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18779
replace fed11_name = "Edmonton - Strathcona" if CES11_IDNUM == 18794
replace fed11_name = "Edmonton East / Edmonton - Est" if CES11_IDNUM == 18798
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18799
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18800
replace fed11_name = "Calgary East / Calgary - Est" if CES11_IDNUM == 18801
replace fed11_name = "Wild Rose" if CES11_IDNUM == 18806
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18807
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18808
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18822
replace fed11_name = "Calgary Southwest / Calgary - Sud - Ouest" if CES11_IDNUM == 18838
replace fed11_name = "Edmonton - Strathcona" if CES11_IDNUM == 18868
replace fed11_name = "Edmonton - Spruce Grove" if CES11_IDNUM == 18869
replace fed11_name = "Edmonton - Leduc" if CES11_IDNUM == 18870
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18887
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18890
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 18901
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 18929
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18952
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18974
replace fed11_name = "Edmonton - Leduc" if CES11_IDNUM == 18978
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18988
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18994
replace fed11_name = "Calgary West / Calgary - Ouest" if CES11_IDNUM == 18999
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19018
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19022
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19024
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 19035
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 19048
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19051
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19072
replace fed11_name = "Macleod" if CES11_IDNUM == 19078
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19093
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19094
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19098
replace fed11_name = "Peace River" if CES11_IDNUM == 19099
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19105
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19109
replace fed11_name = "Yellowhead" if CES11_IDNUM == 19111
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19113
replace fed11_name = "Westlock - St. Paul" if CES11_IDNUM == 19121
replace fed11_name = "Yellowhead" if CES11_IDNUM == 19131
replace fed11_name = "Westlock - St. Paul" if CES11_IDNUM == 19135
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19143
replace fed11_name = "Red Deer" if CES11_IDNUM == 19151
replace fed11_name = "Macleod" if CES11_IDNUM == 19159
replace fed11_name = "Macleod" if CES11_IDNUM == 19162
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19165
replace fed11_name = "Macleod" if CES11_IDNUM == 19166
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19167
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19175
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19179
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19182
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19184
replace fed11_name = "Peace River" if CES11_IDNUM == 19190
replace fed11_name = "Peace River" if CES11_IDNUM == 19192
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19199
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19213
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19215
replace fed11_name = "Westlock - St. Paul" if CES11_IDNUM == 19225
replace fed11_name = "Macleod" if CES11_IDNUM == 19228
replace fed11_name = "Westlock - St. Paul" if CES11_IDNUM == 19232
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19261
replace fed11_name = "Macleod" if CES11_IDNUM == 19276
replace fed11_name = "Fort McMurray - Athabasca" if CES11_IDNUM == 19277
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19286
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19347
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19351
replace fed11_name = "Macleod" if CES11_IDNUM == 19352
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19353
replace fed11_name = "Peace River" if CES11_IDNUM == 19361
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19379
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19381
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19395
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19396
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19412
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19414
replace fed11_name = "Fort McMurray - Athabasca" if CES11_IDNUM == 19416
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19421
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19440
replace fed11_name = "Macleod" if CES11_IDNUM == 19441
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19485
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19504
replace fed11_name = "Red Deer" if CES11_IDNUM == 19536
replace fed11_name = "Fort McMurray - Athabasca" if CES11_IDNUM == 19537
replace fed11_name = "Macleod" if CES11_IDNUM == 19547
replace fed11_name = "Peace River" if CES11_IDNUM == 19557
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19560
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19563
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19564
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 19590
replace fed11_name = "Fort McMurray - Athabasca" if CES11_IDNUM == 19594
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 19601
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 19602
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 19625
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 19633
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 19651
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 19668
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 19679
replace fed11_name = "Richmond" if CES11_IDNUM == 19684
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 19685
replace fed11_name = "Delta - Richmond East / Delta - Richmond - Est" if CES11_IDNUM == 19686
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19709
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 19718
replace fed11_name = "North Vancouver" if CES11_IDNUM == 19719
replace fed11_name = "Langley" if CES11_IDNUM == 19742
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 19754
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 19755
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 19756
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 19764
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19768
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 19775
replace fed11_name = "Langley" if CES11_IDNUM == 19809
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19810
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 19813
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 19814
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 19820
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 19837
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 19838
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19843
replace fed11_name = "Richmond" if CES11_IDNUM == 19849
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 19855
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 19864
replace fed11_name = "Langley" if CES11_IDNUM == 19869
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 19904
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 19913
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19924
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19948
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 19951
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 19962
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 19967
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 19969
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 19971
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 19980
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20019
replace fed11_name = "Richmond" if CES11_IDNUM == 20031
replace fed11_name = "Delta - Richmond East / Delta - Richmond - Est" if CES11_IDNUM == 20034
replace fed11_name = "Richmond" if CES11_IDNUM == 20037
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20057
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 20065
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 20075
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 20079
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20080
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 20086
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 20106
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20114
replace fed11_name = "Langley" if CES11_IDNUM == 20159
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20163
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 20164
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 20167
replace fed11_name = "Richmond" if CES11_IDNUM == 20174
replace fed11_name = "Langley" if CES11_IDNUM == 20175
replace fed11_name = "Langley" if CES11_IDNUM == 20190
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 20220
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20224
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20230
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20257
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 20263
replace fed11_name = "Langley" if CES11_IDNUM == 20264
replace fed11_name = "Delta - Richmond East / Delta - Richmond - Est" if CES11_IDNUM == 20265
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20279
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 20313
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20324
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20330
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20356
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 20379
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 20413
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 20420
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 20425
replace fed11_name = "Langley" if CES11_IDNUM == 20426
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20427
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 20440
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 20455
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20473
replace fed11_name = "Langley" if CES11_IDNUM == 20479
replace fed11_name = "Delta - Richmond East / Delta - Richmond - Est" if CES11_IDNUM == 20480
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20501
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20504
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20511
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 20516
replace fed11_name = "Richmond" if CES11_IDNUM == 20522
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 20525
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 20529
replace fed11_name = "Richmond" if CES11_IDNUM == 20532
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20537
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20539
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20551
replace fed11_name = "Vancouver South / Vancouver - Sud" if CES11_IDNUM == 20572
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20576
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 20605
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20622
replace fed11_name = "Langley" if CES11_IDNUM == 20626
replace fed11_name = "Langley" if CES11_IDNUM == 20628
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 20637
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20652
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 20653
replace fed11_name = "Richmond" if CES11_IDNUM == 20716
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20718
replace fed11_name = "Vancouver South / Vancouver - Sud" if CES11_IDNUM == 20720
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20726
replace fed11_name = "Langley" if CES11_IDNUM == 20735
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20753
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20764
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 20766
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 20776
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20788
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 20806
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 20807
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 20808
replace fed11_name = "Langley" if CES11_IDNUM == 20810
replace fed11_name = "Langley" if CES11_IDNUM == 20813
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20827
replace fed11_name = "Richmond" if CES11_IDNUM == 20828
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 20869
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 20881
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20882
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 20890
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 20901
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 20918
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 20927
replace fed11_name = "Vancouver South / Vancouver - Sud" if CES11_IDNUM == 20932
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 20935
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 20953
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 21016
replace fed11_name = "Langley" if CES11_IDNUM == 21045
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 21051
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 21056
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 21060
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 21062
replace fed11_name = "North Vancouver" if CES11_IDNUM == 21065
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 21067
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 21071
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 21078
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 21105
replace fed11_name = "North Vancouver" if CES11_IDNUM == 21126
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 21127
replace fed11_name = "Burnaby - Douglas" if CES11_IDNUM == 21133
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 21134
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 21160
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 21218
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 21221
replace fed11_name = "Langley" if CES11_IDNUM == 21232
replace fed11_name = "Langley" if CES11_IDNUM == 21238
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 21240
replace fed11_name = "Vancouver South / Vancouver - Sud" if CES11_IDNUM == 21263
replace fed11_name = "North Vancouver" if CES11_IDNUM == 21264
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 21271
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21284
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 21285
replace fed11_name = "Richmond" if CES11_IDNUM == 21331
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21351
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21355
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21356
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 21359
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 21362
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21366
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21373
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21378
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 21392
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21402
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 21406
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21407
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21408
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21415
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 21416
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 21421
replace fed11_name = "Abbotsford" if CES11_IDNUM == 21432
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21452
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21453
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21464
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21470
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 21471
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21474
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21479
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21481
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21489
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 21492
replace fed11_name = "Abbotsford" if CES11_IDNUM == 21506
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 21507
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 21512
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21514
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21519
replace fed11_name = "Victoria" if CES11_IDNUM == 21529
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21530
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21554
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21555
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 21595
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21613
replace fed11_name = "Victoria" if CES11_IDNUM == 21616
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21618
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 21619
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21620
replace fed11_name = "" if CES11_IDNUM == 21629
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21631
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21634
replace fed11_name = "Abbotsford" if CES11_IDNUM == 21638
replace fed11_name = "Victoria" if CES11_IDNUM == 21660
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21661
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21675
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21696
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21697
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 21699
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21721
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21727
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 21731
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 21735
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21753
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 21759
replace fed11_name = "" if CES11_IDNUM == 21760
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21791
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21793
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21798
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21806
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 21810
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 21821
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21833
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21843
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 21850
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21853
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21878
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 21879
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21888
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 21914
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21917
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21922
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 21923
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21924
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21930
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21933
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21941
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21957
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21966
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 21972
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21996
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 22000
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 22005
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 22010
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22013
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22032
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22039
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 22043
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22050
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 22055
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 22062
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22073
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 22078
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22093
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22117
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 22119
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 22120
replace fed11_name = "Victoria" if CES11_IDNUM == 22121
replace fed11_name = "Victoria" if CES11_IDNUM == 22123
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 22130
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 22131
replace fed11_name = "Victoria" if CES11_IDNUM == 22152
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22158
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 22166
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 22176
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22178
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22179
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 22199
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 22201
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 22209
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22241
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22246
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22251
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22257
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 22260
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22289
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 22294
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 22328
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 22332
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22361
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 22370
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22396
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22400
replace fed11_name = "Victoria" if CES11_IDNUM == 22403
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22407
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 22411
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 22412
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 22416
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22431
replace fed11_name = "Victoria" if CES11_IDNUM == 22432
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 22434
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22439
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22448
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22449
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22462
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22474
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 22488
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 22495
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22498
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 22514
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22516
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 22520
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22525
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22529
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 22539
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22545
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 22567
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 22592
replace fed11_name = "Abbotsford" if CES11_IDNUM == 22594
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22601
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22612
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 22639
replace fed11_name = "British Columbia Southern Interior / Colombie - Britannique - Southe" if CES11_IDNUM == 22658
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22680
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 22700
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 22726
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22727
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22739
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 22741
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800003
replace fed11_name = "" if CES11_IDNUM == 800004
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800022
replace fed11_name = "" if CES11_IDNUM == 800027
replace fed11_name = "Avalon" if CES11_IDNUM == 800092
replace fed11_name = "St. John's East / St. John's-Est" if CES11_IDNUM == 800106
replace fed11_name = "Avalon" if CES11_IDNUM == 800166
replace fed11_name = "St. John's East / St. John's-Est" if CES11_IDNUM == 800190
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800217
replace fed11_name = "" if CES11_IDNUM == 800260
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 800270
replace fed11_name = "" if CES11_IDNUM == 800314
replace fed11_name = "Avalon" if CES11_IDNUM == 800374
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 800378
replace fed11_name = "St. John's East / St. John's-Est" if CES11_IDNUM == 800423
replace fed11_name = "St. John's East / St. John's-Est" if CES11_IDNUM == 800493
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 800540
replace fed11_name = "Egmont" if CES11_IDNUM == 800559
replace fed11_name = "Cardigan" if CES11_IDNUM == 800594
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800635
replace fed11_name = "" if CES11_IDNUM == 800639
replace fed11_name = "Cardigan" if CES11_IDNUM == 800647
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800654
replace fed11_name = "Malpeque" if CES11_IDNUM == 800676
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800678
replace fed11_name = "Cardigan" if CES11_IDNUM == 800724
replace fed11_name = "Cardigan" if CES11_IDNUM == 800735
replace fed11_name = "Malpeque" if CES11_IDNUM == 800752
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800756
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800775
replace fed11_name = "Malpeque" if CES11_IDNUM == 800783
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800793
replace fed11_name = "Egmont" if CES11_IDNUM == 800796
replace fed11_name = "Cardigan" if CES11_IDNUM == 800801
replace fed11_name = "Cardigan" if CES11_IDNUM == 800823
replace fed11_name = "Egmont" if CES11_IDNUM == 800856
replace fed11_name = "Cardigan" if CES11_IDNUM == 800861
replace fed11_name = "" if CES11_IDNUM == 800870
replace fed11_name = "" if CES11_IDNUM == 800903
replace fed11_name = "Egmont" if CES11_IDNUM == 801038
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 801100
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 801111
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 801121
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 801127
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801129
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 801165
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 801173
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801179
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 801188
replace fed11_name = "Central Nova / Nova-Centre" if CES11_IDNUM == 801206
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 801213
replace fed11_name = "" if CES11_IDNUM == 801224
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801243
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 801244
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801279
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 801309
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801316
replace fed11_name = "Sackville - Eastern Shore" if CES11_IDNUM == 801336
replace fed11_name = "Halifax West / Halifax-Ouest" if CES11_IDNUM == 801365
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801393
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801401
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801608
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 801644
replace fed11_name = "Fredericton" if CES11_IDNUM == 801661
replace fed11_name = "Saint John" if CES11_IDNUM == 801681
replace fed11_name = "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest" if CES11_IDNUM == 801684
replace fed11_name = "Saint John" if CES11_IDNUM == 801698
replace fed11_name = "Fredericton" if CES11_IDNUM == 801728
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 801755
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 801809
replace fed11_name = "Calgary Centre-North / Calgary-Centre-Nord" if CES11_IDNUM == 801812
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 801843
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 801862
replace fed11_name = "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest" if CES11_IDNUM == 801914
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 801948
replace fed11_name = "Saint John" if CES11_IDNUM == 801964
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 801966
replace fed11_name = "Saint John" if CES11_IDNUM == 801996
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 802013
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 802016
replace fed11_name = "Saint John" if CES11_IDNUM == 802026
replace fed11_name = "" if CES11_IDNUM == 802053
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 802074
replace fed11_name = "" if CES11_IDNUM == 802113
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 802130
replace fed11_name = "" if CES11_IDNUM == 802161
replace fed11_name = "Honor�-Mercier" if CES11_IDNUM == 802164
replace fed11_name = "Montmorency - Charlevoix - Haute-C�te-Nord" if CES11_IDNUM == 802170
replace fed11_name = "Roberval - Lac-Saint-Jean" if CES11_IDNUM == 802177
replace fed11_name = "Saint-Hyacinthe - Bagot" if CES11_IDNUM == 802203
replace fed11_name = "Saint-Laurent - Cartierville" if CES11_IDNUM == 802235
replace fed11_name = "" if CES11_IDNUM == 802239
replace fed11_name = "Drummond" if CES11_IDNUM == 802245
replace fed11_name = "" if CES11_IDNUM == 802248
replace fed11_name = "" if CES11_IDNUM == 802250
replace fed11_name = "Saint-Lambert" if CES11_IDNUM == 802321
replace fed11_name = "" if CES11_IDNUM == 802362
replace fed11_name = "Verch�res - Les Patriotes" if CES11_IDNUM == 802378
replace fed11_name = "Saint-Jean" if CES11_IDNUM == 802422
replace fed11_name = "" if CES11_IDNUM == 802441
replace fed11_name = "Abitibi - T�miscamingue" if CES11_IDNUM == 802468
replace fed11_name = "Shefford" if CES11_IDNUM == 802540
replace fed11_name = "Beauce" if CES11_IDNUM == 802572
replace fed11_name = "" if CES11_IDNUM == 802591
replace fed11_name = "Saint-Laurent - Cartierville" if CES11_IDNUM == 802597
replace fed11_name = "Abitibi - T�miscamingue" if CES11_IDNUM == 802607
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 802678
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 802711
replace fed11_name = "Vaudreuil-Soulanges" if CES11_IDNUM == 802718
replace fed11_name = "Drummond" if CES11_IDNUM == 802786
replace fed11_name = "Saint-Hyacinthe - Bagot" if CES11_IDNUM == 802808
replace fed11_name = "Saint-Lambert" if CES11_IDNUM == 802824
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 802828
replace fed11_name = "" if CES11_IDNUM == 802926
replace fed11_name = "" if CES11_IDNUM == 802950
replace fed11_name = "Manicouagan" if CES11_IDNUM == 802952
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 802970
replace fed11_name = "" if CES11_IDNUM == 802975
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 803013
replace fed11_name = "Verch�res - Les Patriotes" if CES11_IDNUM == 803052
replace fed11_name = "" if CES11_IDNUM == 803075
replace fed11_name = "Repentigny" if CES11_IDNUM == 803089
replace fed11_name = "" if CES11_IDNUM == 803094
replace fed11_name = "Abitibi - T�miscamingue" if CES11_IDNUM == 803109
replace fed11_name = "Louis-H�bert" if CES11_IDNUM == 803137
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 803141
replace fed11_name = "" if CES11_IDNUM == 803147
replace fed11_name = "" if CES11_IDNUM == 803175
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 803177
replace fed11_name = "Mont-Royal / Mount Royal" if CES11_IDNUM == 803181
replace fed11_name = "Louis-H�bert" if CES11_IDNUM == 803280
replace fed11_name = "Outremont" if CES11_IDNUM == 803295
replace fed11_name = "Pontiac" if CES11_IDNUM == 803302
replace fed11_name = "Beauce" if CES11_IDNUM == 803337
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 803349
replace fed11_name = "Montmorency - Charlevoix - Haute-C�te-Nord" if CES11_IDNUM == 803355
replace fed11_name = "Beauce" if CES11_IDNUM == 803431
replace fed11_name = "" if CES11_IDNUM == 803445
replace fed11_name = "Lotbini�re - Chutes-de-la-Chaudi�re" if CES11_IDNUM == 803450
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 803461
replace fed11_name = "Trois-Rivi�res" if CES11_IDNUM == 803462
replace fed11_name = "" if CES11_IDNUM == 803476
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Rivi�re-du-Loup" if CES11_IDNUM == 803537
replace fed11_name = "" if CES11_IDNUM == 803558
replace fed11_name = "" if CES11_IDNUM == 803585
replace fed11_name = "Repentigny" if CES11_IDNUM == 803649
replace fed11_name = "L�vis - Bellechasse" if CES11_IDNUM == 803652
replace fed11_name = "" if CES11_IDNUM == 803659
replace fed11_name = "" if CES11_IDNUM == 803697
replace fed11_name = "Portneuf - Jacques-Cartier" if CES11_IDNUM == 803702
replace fed11_name = "" if CES11_IDNUM == 803710
replace fed11_name = "Hochelaga" if CES11_IDNUM == 803720
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 803721
replace fed11_name = "Outremont" if CES11_IDNUM == 803780
replace fed11_name = "Rimouski-Neigette - T�miscouata - Les Basques" if CES11_IDNUM == 803820
replace fed11_name = "LaSalle - �mard" if CES11_IDNUM == 803821
replace fed11_name = "" if CES11_IDNUM == 803836
replace fed11_name = "Drummond" if CES11_IDNUM == 803841
replace fed11_name = "Rimouski-Neigette - T�miscouata - Les Basques" if CES11_IDNUM == 803892
replace fed11_name = "Saint-Maurice - Champlain" if CES11_IDNUM == 803916
replace fed11_name = "" if CES11_IDNUM == 803918
replace fed11_name = "Saint-Bruno - Saint-Hubert" if CES11_IDNUM == 803965
replace fed11_name = "Rivi�re-du-Nord" if CES11_IDNUM == 804039
replace fed11_name = "Pontiac" if CES11_IDNUM == 804097
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 804130
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 804164
replace fed11_name = "M�gantic - L'�rable" if CES11_IDNUM == 804170
replace fed11_name = "" if CES11_IDNUM == 804178
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 804184
replace fed11_name = "Saint-Bruno - Saint-Hubert" if CES11_IDNUM == 804196
replace fed11_name = "" if CES11_IDNUM == 804276
replace fed11_name = "Saint-Hyacinthe - Bagot" if CES11_IDNUM == 804285
replace fed11_name = "" if CES11_IDNUM == 804328
replace fed11_name = "" if CES11_IDNUM == 804332
replace fed11_name = "" if CES11_IDNUM == 804340
replace fed11_name = "Manicouagan" if CES11_IDNUM == 804354
replace fed11_name = "Saint-Lambert" if CES11_IDNUM == 804360
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 804421
replace fed11_name = "Papineau" if CES11_IDNUM == 804428
replace fed11_name = "Rimouski-Neigette - T�miscouata - Les Basques" if CES11_IDNUM == 804431
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 804432
replace fed11_name = "" if CES11_IDNUM == 804437
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 804438
replace fed11_name = "Mont-Royal / Mount Royal" if CES11_IDNUM == 804454
replace fed11_name = "" if CES11_IDNUM == 804474
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 804537
replace fed11_name = "Jeanne-Le Ber" if CES11_IDNUM == 804544
replace fed11_name = "Rivi�re-du-Nord" if CES11_IDNUM == 804545
replace fed11_name = "" if CES11_IDNUM == 804549
replace fed11_name = "Jonqui�re - Alma" if CES11_IDNUM == 804567
replace fed11_name = "Lac-Saint-Louis" if CES11_IDNUM == 804571
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 804597
replace fed11_name = "Shefford" if CES11_IDNUM == 804647
replace fed11_name = "" if CES11_IDNUM == 804662
replace fed11_name = "Pontiac" if CES11_IDNUM == 804709
replace fed11_name = "" if CES11_IDNUM == 804775
replace fed11_name = "Pontiac" if CES11_IDNUM == 804789
replace fed11_name = "Portneuf - Jacques-Cartier" if CES11_IDNUM == 804845
replace fed11_name = "Rivi�re-du-Nord" if CES11_IDNUM == 804897
replace fed11_name = "" if CES11_IDNUM == 804954
replace fed11_name = "Trois-Rivi�res" if CES11_IDNUM == 804969
replace fed11_name = "Ch�teauguay - Saint-Constant" if CES11_IDNUM == 805026
replace fed11_name = "Saint-Maurice - Champlain" if CES11_IDNUM == 805042
replace fed11_name = "Beauce" if CES11_IDNUM == 805044
replace fed11_name = "Montcalm" if CES11_IDNUM == 805110
replace fed11_name = "" if CES11_IDNUM == 805113
replace fed11_name = "Jonqui�re - Alma" if CES11_IDNUM == 805119
replace fed11_name = "" if CES11_IDNUM == 805123
replace fed11_name = "Abitibi - T�miscamingue" if CES11_IDNUM == 805127
replace fed11_name = "Bas-Richelieu - Nicolet - B�cancour" if CES11_IDNUM == 805153
replace fed11_name = "" if CES11_IDNUM == 805193
replace fed11_name = "Rimouski-Neigette - T�miscouata - Les Basques" if CES11_IDNUM == 805196
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 805216
replace fed11_name = "Laval - Les �les" if CES11_IDNUM == 805218
replace fed11_name = "Longueuil - Pierre-Boucher" if CES11_IDNUM == 805227
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 805251
replace fed11_name = "Hochelaga" if CES11_IDNUM == 805253
replace fed11_name = "Westmount - Ville-Marie" if CES11_IDNUM == 805283
replace fed11_name = "" if CES11_IDNUM == 805321
replace fed11_name = "" if CES11_IDNUM == 805332
replace fed11_name = "Jonqui�re - Alma" if CES11_IDNUM == 805335
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 805343
replace fed11_name = "Saint-Bruno - Saint-Hubert" if CES11_IDNUM == 805344
replace fed11_name = "Rosemont - La Petite-Patrie" if CES11_IDNUM == 805375
replace fed11_name = "Trois-Rivi�res" if CES11_IDNUM == 805419
replace fed11_name = "Rosemont - La Petite-Patrie" if CES11_IDNUM == 805437
replace fed11_name = "Outremont" if CES11_IDNUM == 805443
replace fed11_name = "Saint-Lambert" if CES11_IDNUM == 805488
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 805538
replace fed11_name = "Saint-Hyacinthe - Bagot" if CES11_IDNUM == 805576
replace fed11_name = "Louis-Saint-Laurent" if CES11_IDNUM == 805577
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 805606
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 805614
replace fed11_name = "" if CES11_IDNUM == 805632
replace fed11_name = "Notre-Dame-de-Gr�ce - Lachine" if CES11_IDNUM == 805646
replace fed11_name = "Honor�-Mercier" if CES11_IDNUM == 805654
replace fed11_name = "" if CES11_IDNUM == 805655
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 805657
replace fed11_name = "Marc-Aur�le-Fortin" if CES11_IDNUM == 805671
replace fed11_name = "Saint-Jean" if CES11_IDNUM == 805727
replace fed11_name = "Rivi�re-des-Mille-�les" if CES11_IDNUM == 805833
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 805889
replace fed11_name = "Drummond" if CES11_IDNUM == 805904
replace fed11_name = "" if CES11_IDNUM == 805915
replace fed11_name = "Pontiac" if CES11_IDNUM == 805964
replace fed11_name = "Laurier - Sainte-Marie" if CES11_IDNUM == 806036
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 806056
replace fed11_name = "Ch�teauguay - Saint-Constant" if CES11_IDNUM == 806091
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 806146
replace fed11_name = "" if CES11_IDNUM == 806176
replace fed11_name = "Abitibi - T�miscamingue" if CES11_IDNUM == 806232
replace fed11_name = "" if CES11_IDNUM == 806278
replace fed11_name = "Montmorency - Charlevoix - Haute-C�te-Nord" if CES11_IDNUM == 806320
replace fed11_name = "Laurier - Sainte-Marie" if CES11_IDNUM == 806329
replace fed11_name = "Lotbini�re - Chutes-de-la-Chaudi�re" if CES11_IDNUM == 806340
replace fed11_name = "Roberval - Lac-Saint-Jean" if CES11_IDNUM == 806342
replace fed11_name = "Saint-Bruno - Saint-Hubert" if CES11_IDNUM == 806382
replace fed11_name = "Jonqui�re - Alma" if CES11_IDNUM == 806480
replace fed11_name = "" if CES11_IDNUM == 806505
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 806549
replace fed11_name = "Verch�res - Les Patriotes" if CES11_IDNUM == 806567
replace fed11_name = "M�gantic - L'�rable" if CES11_IDNUM == 806589
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 806677
replace fed11_name = "Kitchener Centre / Kitchener-Centre" if CES11_IDNUM == 806686
replace fed11_name = "Guelph" if CES11_IDNUM == 806696
replace fed11_name = "Ottawa Centre / Ottawa-Centre" if CES11_IDNUM == 806735
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek" if CES11_IDNUM == 806740
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 806755
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 806773
replace fed11_name = "Essex" if CES11_IDNUM == 806813
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 806820
replace fed11_name = "" if CES11_IDNUM == 806834
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 806868
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 806891
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 806913
replace fed11_name = "Brampton West / Brampton-Ouest" if CES11_IDNUM == 807007
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 807020
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 807034
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 807042
replace fed11_name = "London West / London-Ouest" if CES11_IDNUM == 807046
replace fed11_name = "St. Paul's" if CES11_IDNUM == 807048
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 807119
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 807135
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 807196
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 807272
replace fed11_name = "Chatham-Kent - Essex" if CES11_IDNUM == 807277
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 807295
replace fed11_name = "Halton" if CES11_IDNUM == 807327
replace fed11_name = "" if CES11_IDNUM == 807330
replace fed11_name = "" if CES11_IDNUM == 807340
replace fed11_name = "Scarborough Southwest / Scarborough-Sud-Ouest" if CES11_IDNUM == 807433
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough-Est" if CES11_IDNUM == 807461
replace fed11_name = "Peterborough" if CES11_IDNUM == 807463
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 807464
replace fed11_name = "" if CES11_IDNUM == 807475
replace fed11_name = "" if CES11_IDNUM == 807476
replace fed11_name = "St. Catharines" if CES11_IDNUM == 807493
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 807507
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 807515
replace fed11_name = "" if CES11_IDNUM == 807614
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 807632
replace fed11_name = "Welland" if CES11_IDNUM == 807642
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 807732
replace fed11_name = "" if CES11_IDNUM == 807756
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior-Nord" if CES11_IDNUM == 807796
replace fed11_name = "Kingston and the Islands / Kingston et les �les" if CES11_IDNUM == 807799
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 807837
replace fed11_name = "Simcoe North / Simcoe-Nord" if CES11_IDNUM == 807847
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 807887
replace fed11_name = "Simcoe North / Simcoe-Nord" if CES11_IDNUM == 807902
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 807996
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 808032
replace fed11_name = "" if CES11_IDNUM == 808056
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 808059
replace fed11_name = "" if CES11_IDNUM == 808146
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 808151
replace fed11_name = "Thornhill" if CES11_IDNUM == 808175
replace fed11_name = "Peterborough" if CES11_IDNUM == 808187
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 808214
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 808227
replace fed11_name = "Lambton - Kent - Middlesex" if CES11_IDNUM == 808283
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 808288
replace fed11_name = "" if CES11_IDNUM == 808292
replace fed11_name = "Halton" if CES11_IDNUM == 808313
replace fed11_name = "Burlington" if CES11_IDNUM == 808347
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 808358
replace fed11_name = "Ottawa South / Ottawa-Sud" if CES11_IDNUM == 808380
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 808397
replace fed11_name = "Ottawa South / Ottawa-Sud" if CES11_IDNUM == 808442
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 808504
replace fed11_name = "" if CES11_IDNUM == 808530
replace fed11_name = "Windsor West / Windsor-Ouest" if CES11_IDNUM == 808563
replace fed11_name = "Don Valley West / Don Valley-Ouest" if CES11_IDNUM == 808579
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 808585
replace fed11_name = "" if CES11_IDNUM == 808634
replace fed11_name = "St. Catharines" if CES11_IDNUM == 808636
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 808648
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 808666
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 808781
replace fed11_name = "Essex" if CES11_IDNUM == 808791
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 808794
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 808804
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 808816
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 808825
replace fed11_name = "" if CES11_IDNUM == 808888
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek" if CES11_IDNUM == 808893
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 808914
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 808922
replace fed11_name = "Willowdale" if CES11_IDNUM == 808942
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 808954
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 808961
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 808964
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 808972
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 808979
replace fed11_name = "Oshawa" if CES11_IDNUM == 808987
replace fed11_name = "" if CES11_IDNUM == 809019
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 809038
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 809043
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 809052
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 809058
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 809075
replace fed11_name = "" if CES11_IDNUM == 809094
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 809098
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 809113
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 809229
replace fed11_name = "Willowdale" if CES11_IDNUM == 809238
replace fed11_name = "" if CES11_IDNUM == 809262
replace fed11_name = "Ottawa - Orl�ans" if CES11_IDNUM == 809270
replace fed11_name = "London West / London-Ouest" if CES11_IDNUM == 809277
replace fed11_name = "" if CES11_IDNUM == 809344
replace fed11_name = "Simcoe North / Simcoe-Nord" if CES11_IDNUM == 809369
replace fed11_name = "" if CES11_IDNUM == 809382
replace fed11_name = "" if CES11_IDNUM == 809396
replace fed11_name = "Windsor West / Windsor-Ouest" if CES11_IDNUM == 809429
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 809518
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 809531
replace fed11_name = "" if CES11_IDNUM == 809539
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 809569
replace fed11_name = "" if CES11_IDNUM == 809581
replace fed11_name = "Brant" if CES11_IDNUM == 809598
replace fed11_name = "Kingston and the Islands / Kingston et les �les" if CES11_IDNUM == 809644
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 809680
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 809736
replace fed11_name = "Windsor West / Windsor-Ouest" if CES11_IDNUM == 809744
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 809822
replace fed11_name = "Etobicoke Centre / Etobicoke-Centre" if CES11_IDNUM == 809834
replace fed11_name = "Barrie" if CES11_IDNUM == 809853
replace fed11_name = "" if CES11_IDNUM == 809888
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 809945
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 809982
replace fed11_name = "" if CES11_IDNUM == 809998
replace fed11_name = "York Centre / York-Centre" if CES11_IDNUM == 810035
replace fed11_name = "" if CES11_IDNUM == 810038
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 810046
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 810126
replace fed11_name = "Toronto Centre / Toronto-Centre" if CES11_IDNUM == 810133
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 810140
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 810257
replace fed11_name = "Brampton West / Brampton-Ouest" if CES11_IDNUM == 810267
replace fed11_name = "Oxford" if CES11_IDNUM == 810295
replace fed11_name = "Halton" if CES11_IDNUM == 810337
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 810339
replace fed11_name = "Etobicoke Centre / Etobicoke-Centre" if CES11_IDNUM == 810343
replace fed11_name = "" if CES11_IDNUM == 810388
replace fed11_name = "Guelph" if CES11_IDNUM == 810422
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 810428
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 810441
replace fed11_name = "Ottawa West - Nepean / Ottawa-Ouest - Nepean" if CES11_IDNUM == 810472
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 810473
replace fed11_name = "Sudbury" if CES11_IDNUM == 810480
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 810553
replace fed11_name = "Ottawa Centre / Ottawa-Centre" if CES11_IDNUM == 810562
replace fed11_name = "Oxford" if CES11_IDNUM == 810572
replace fed11_name = "Oxford" if CES11_IDNUM == 810589
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 810610
replace fed11_name = "Toronto Centre / Toronto-Centre" if CES11_IDNUM == 810650
replace fed11_name = "Simcoe North / Simcoe-Nord" if CES11_IDNUM == 810685
replace fed11_name = "" if CES11_IDNUM == 810697
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 810699
replace fed11_name = "" if CES11_IDNUM == 810755
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 810759
replace fed11_name = "Willowdale" if CES11_IDNUM == 810847
replace fed11_name = "Chatham-Kent - Essex" if CES11_IDNUM == 810915
replace fed11_name = "Burlington" if CES11_IDNUM == 810916
replace fed11_name = "" if CES11_IDNUM == 810935
replace fed11_name = "Windsor West / Windsor-Ouest" if CES11_IDNUM == 810945
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 810983
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 810991
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 811074
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 811137
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 811140
replace fed11_name = "York Centre / York-Centre" if CES11_IDNUM == 811145
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 811173
replace fed11_name = "Cambridge" if CES11_IDNUM == 811194
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 811223
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 811230
replace fed11_name = "Welland" if CES11_IDNUM == 811233
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 811242
replace fed11_name = "" if CES11_IDNUM == 811290
replace fed11_name = "" if CES11_IDNUM == 811303
replace fed11_name = "St. Paul's" if CES11_IDNUM == 811326
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 811371
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 811395
replace fed11_name = "" if CES11_IDNUM == 811484
replace fed11_name = "Essex" if CES11_IDNUM == 811490
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek" if CES11_IDNUM == 811503
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 811585
replace fed11_name = "Chatham-Kent - Essex" if CES11_IDNUM == 811624
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 811666
replace fed11_name = "" if CES11_IDNUM == 811763
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 811766
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 811785
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 811892
replace fed11_name = "" if CES11_IDNUM == 811913
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812061
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 812063
replace fed11_name = "" if CES11_IDNUM == 812076
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 812093
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 812104
replace fed11_name = "" if CES11_IDNUM == 812113
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 812195
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 812245
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 812249
replace fed11_name = "" if CES11_IDNUM == 812250
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812263
replace fed11_name = "" if CES11_IDNUM == 812290
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812293
replace fed11_name = "" if CES11_IDNUM == 812378
replace fed11_name = "" if CES11_IDNUM == 812392
replace fed11_name = "" if CES11_IDNUM == 812443
replace fed11_name = "Saint Boniface / Saint-Boniface" if CES11_IDNUM == 812447
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 812450
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812498
replace fed11_name = "Provencher" if CES11_IDNUM == 812522
replace fed11_name = "Winnipeg South Centre / Winnipeg-Centre-Sud" if CES11_IDNUM == 812550
replace fed11_name = "Winnipeg South Centre / Winnipeg-Centre-Sud" if CES11_IDNUM == 812559
replace fed11_name = "" if CES11_IDNUM == 812575
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 812584
replace fed11_name = "" if CES11_IDNUM == 812597
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 812656
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 812665
replace fed11_name = "Winnipeg Centre / Winnipeg-Centre" if CES11_IDNUM == 812666
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812692
replace fed11_name = "" if CES11_IDNUM == 812710
replace fed11_name = "Churchill" if CES11_IDNUM == 812762
replace fed11_name = "Churchill" if CES11_IDNUM == 812769
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812790
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 812797
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812808
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812833
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 812865
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 812968
replace fed11_name = "Prince Albert" if CES11_IDNUM == 812987
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813026
replace fed11_name = "" if CES11_IDNUM == 813093
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813095
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 813115
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 813125
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 813147
replace fed11_name = "Wascana" if CES11_IDNUM == 813161
replace fed11_name = "Palliser" if CES11_IDNUM == 813162
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 813188
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 813241
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 813297
replace fed11_name = "Battlefords - Lloydminster" if CES11_IDNUM == 813320
replace fed11_name = "Prince Albert" if CES11_IDNUM == 813332
replace fed11_name = "Desneth� - Missinippi - Churchill River / Desneth� - Missinippi - R" if CES11_IDNUM == 813335
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813389
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 813435
replace fed11_name = "Prince Albert" if CES11_IDNUM == 813444
replace fed11_name = "" if CES11_IDNUM == 813450
replace fed11_name = "Blackstrap" if CES11_IDNUM == 813472
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813611
replace fed11_name = "" if CES11_IDNUM == 813636
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 813661
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 813761
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 813809
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 813816
replace fed11_name = "Calgary Centre-North / Calgary-Centre-Nord" if CES11_IDNUM == 813989
replace fed11_name = "" if CES11_IDNUM == 813992
replace fed11_name = "Calgary West / Calgary-Ouest" if CES11_IDNUM == 813993
replace fed11_name = "Calgary Centre / Calgary-Centre" if CES11_IDNUM == 814043
replace fed11_name = "" if CES11_IDNUM == 814144
replace fed11_name = "" if CES11_IDNUM == 814182
replace fed11_name = "Edmonton - Strathcona" if CES11_IDNUM == 814221
replace fed11_name = "Edmonton - Mill Woods - Beaumont" if CES11_IDNUM == 814233
replace fed11_name = "Edmonton - Mill Woods - Beaumont" if CES11_IDNUM == 814290
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 814340
replace fed11_name = "" if CES11_IDNUM == 814431
replace fed11_name = "Edmonton - Spruce Grove" if CES11_IDNUM == 814486
replace fed11_name = "Edmonton - Leduc" if CES11_IDNUM == 814492
replace fed11_name = "" if CES11_IDNUM == 814506
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 814609
replace fed11_name = "" if CES11_IDNUM == 814616
replace fed11_name = "Crowfoot" if CES11_IDNUM == 814617
replace fed11_name = "" if CES11_IDNUM == 814621
replace fed11_name = "Calgary West / Calgary-Ouest" if CES11_IDNUM == 814674
replace fed11_name = "" if CES11_IDNUM == 814684
replace fed11_name = "Lethbridge" if CES11_IDNUM == 814703
replace fed11_name = "Wild Rose" if CES11_IDNUM == 814710
replace fed11_name = "" if CES11_IDNUM == 814717
replace fed11_name = "Calgary Centre-North / Calgary-Centre-Nord" if CES11_IDNUM == 814805
replace fed11_name = "Edmonton East / Edmonton-Est" if CES11_IDNUM == 814874
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 814883
replace fed11_name = "Calgary Northeast / Calgary-Nord-Est" if CES11_IDNUM == 814888
replace fed11_name = "Red Deer" if CES11_IDNUM == 814918
replace fed11_name = "Edmonton Centre / Edmonton-Centre" if CES11_IDNUM == 814923
replace fed11_name = "Crowfoot" if CES11_IDNUM == 814934
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 814964
replace fed11_name = "" if CES11_IDNUM == 815101
replace fed11_name = "" if CES11_IDNUM == 815205
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 815217
replace fed11_name = "Macleod" if CES11_IDNUM == 815320
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 815412
replace fed11_name = "" if CES11_IDNUM == 815423
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 815457
replace fed11_name = "" if CES11_IDNUM == 815464
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 815466
replace fed11_name = "" if CES11_IDNUM == 815469
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 815565
replace fed11_name = "Edmonton - Strathcona" if CES11_IDNUM == 815567
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 815672
replace fed11_name = "" if CES11_IDNUM == 815683
replace fed11_name = "" if CES11_IDNUM == 815713
replace fed11_name = "" if CES11_IDNUM == 815718
replace fed11_name = "" if CES11_IDNUM == 815963
replace fed11_name = "British Columbia Southern Interior / Colombie-Britannique-Southern" if CES11_IDNUM == 815971
replace fed11_name = "" if CES11_IDNUM == 816126
replace fed11_name = "Abbotsford" if CES11_IDNUM == 816139
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 816176
replace fed11_name = "Vancouver Island North / �le de Vancouver-Nord" if CES11_IDNUM == 816211
replace fed11_name = "" if CES11_IDNUM == 816261
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 816283
replace fed11_name = "Vancouver Island North / �le de Vancouver-Nord" if CES11_IDNUM == 816362
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 816365
replace fed11_name = "" if CES11_IDNUM == 816376
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 816405
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 816425
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 816440
replace fed11_name = "" if CES11_IDNUM == 816592
replace fed11_name = "" if CES11_IDNUM == 816597
replace fed11_name = "" if CES11_IDNUM == 816611
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 816622
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 816627
replace fed11_name = "" if CES11_IDNUM == 816678
replace fed11_name = "" if CES11_IDNUM == 816719
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 816722
replace fed11_name = "Vancouver Island North / �le de Vancouver-Nord" if CES11_IDNUM == 816778
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 816792
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 816890
replace fed11_name = "" if CES11_IDNUM == 816936
replace fed11_name = "" if CES11_IDNUM == 816943
replace fed11_name = "" if CES11_IDNUM == 816978
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 816997
replace fed11_name = "Langley" if CES11_IDNUM == 817027
replace fed11_name = "Delta - Richmond East / Delta - Richmond-Est" if CES11_IDNUM == 817041
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 817053
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 817187
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 817204
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 817294
replace fed11_name = "" if CES11_IDNUM == 817302
replace fed11_name = "" if CES11_IDNUM == 817306
replace fed11_name = "Langley" if CES11_IDNUM == 817347
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 817349
replace fed11_name = "" if CES11_IDNUM == 817387
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 817391
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 817426
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 817454
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 817473
replace fed11_name = "Vancouver East / Vancouver-Est" if CES11_IDNUM == 817512
replace fed11_name = "" if CES11_IDNUM == 817521
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 817750
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 817752
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 817838
replace fed11_name = "Delta - Richmond East / Delta - Richmond-Est" if CES11_IDNUM == 817871
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 817900
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 817912
replace fed11_name = "Edmonton Centre / Edmonton-Centre" if CES11_IDNUM == 817920
replace fed11_name = "Vancouver East / Vancouver-Est" if CES11_IDNUM == 817990
replace fed11_name = "" if CES11_IDNUM == 818061
replace fed11_name = "Langley" if CES11_IDNUM == 818134
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 818344
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 818353
replace fed11_name = "Red Deer" if CES11_IDNUM == 815408
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 11917
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20857
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 10051
replace fed11_name = "Halifax" if CES11_IDNUM == 801269
replace fed11_name = "Ottawa South / Ottawa-Sud" if CES11_IDNUM == 810468
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 11771
replace fed11_name = "Gatineau" if CES11_IDNUM == 10219
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18713
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 13465
replace fed11_name = "Halifax" if CES11_IDNUM == 801088
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 15702
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21912
replace fed11_name = "Malpeque" if CES11_IDNUM == 884
replace fed11_name = "Okanagan - Shuswap" if CES11_IDNUM == 22413
replace fed11_name = "Egmont" if CES11_IDNUM == 725
replace fed11_name = "Willowdale" if CES11_IDNUM == 12374
replace fed11_name = "Scarborough - Agincourt" if CES11_IDNUM == 10950
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 4245
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 16564
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 10959
replace fed11_name = "Outremont" if CES11_IDNUM == 804199
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17244
replace fed11_name = "Calgary Southeast / Calgary-Sud-Est" if CES11_IDNUM == 814112
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 802308
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 807903
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 800464
replace fed11_name = "Edmonton Centre / Edmonton - Centre" if CES11_IDNUM == 19026
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 17601
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15217
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17079
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 811930
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 14920
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 15552
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 10348
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22072
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12030
replace fed11_name = "Scarborough Centre / Scarborough-Centre" if CES11_IDNUM == 810784
replace fed11_name = "Oak Ridges - Markham" if CES11_IDNUM == 10953
replace fed11_name = "St. Catharines" if CES11_IDNUM == 13895
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 809269
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 3348
replace fed11_name = "Hamilton Centre / Hamilton - Centre" if CES11_IDNUM == 14828
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 16607
replace fed11_name = "Malpeque" if CES11_IDNUM == 1146
replace fed11_name = "Gatineau" if CES11_IDNUM == 9465
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 18997
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 7241
replace fed11_name = "Oxford" if CES11_IDNUM == 809692
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812685
replace fed11_name = "Kitchener Centre / Kitchener-Centre" if CES11_IDNUM == 808180
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 9093
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 12489
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21678
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 3128
replace fed11_name = "Winnipeg South Centre / Winnipeg-Centre-Sud" if CES11_IDNUM == 812097
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 16380
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 15203
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 16352
replace fed11_name = "" if CES11_IDNUM == 807868
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 14808
replace fed11_name = "Oxford" if CES11_IDNUM == 810786
replace fed11_name = "Essex" if CES11_IDNUM == 13690
replace fed11_name = "Victoria" if CES11_IDNUM == 21447
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 15441
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 817479
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 15354
replace fed11_name = "Cape Breton - Canso" if CES11_IDNUM == 801304
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 2250
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18687
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 19708
replace fed11_name = "North Vancouver" if CES11_IDNUM == 19727
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 816528
replace fed11_name = "Vancouver East / Vancouver-Est" if CES11_IDNUM == 816116
replace fed11_name = "Saint Boniface / Saint-Boniface" if CES11_IDNUM == 812215
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 15355
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 16441
replace fed11_name = "Guelph" if CES11_IDNUM == 14705
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 15074
replace fed11_name = "Oshawa" if CES11_IDNUM == 15508
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 810475
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 3287
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18587
replace fed11_name = "Vancouver Island North / �le de Vancouver-Nord" if CES11_IDNUM == 817166
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 17591
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6948
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 17828
replace fed11_name = "" if CES11_IDNUM == 817325
replace fed11_name = "" if CES11_IDNUM == 808536
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17410
replace fed11_name = "Nickel Belt" if CES11_IDNUM == 807631
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 808004
replace fed11_name = "Oakville" if CES11_IDNUM == 10921
replace fed11_name = "Willowdale" if CES11_IDNUM == 11126
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12781
replace fed11_name = "Cardigan" if CES11_IDNUM == 800674
replace fed11_name = "" if CES11_IDNUM == 809406
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 22256
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 15833
replace fed11_name = "Oakville" if CES11_IDNUM == 811195
replace fed11_name = "Essex" if CES11_IDNUM == 14422
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 810281
replace fed11_name = "" if CES11_IDNUM == 817848
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 11685
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 804029
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 3030
replace fed11_name = "Oxford" if CES11_IDNUM == 16561
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800041
replace fed11_name = "Brant" if CES11_IDNUM == 16128
replace fed11_name = "Egmont" if CES11_IDNUM == 968
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 14419
replace fed11_name = "Qu�bec" if CES11_IDNUM == 802797
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 8837
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22321
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18258
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 21277
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 17532
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 16953
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 807704
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 20974
replace fed11_name = "Hochelaga" if CES11_IDNUM == 4425
replace fed11_name = "Calgary West / Calgary-Ouest" if CES11_IDNUM == 815405
replace fed11_name = "Algoma - Manitoulin - Kapuskasing" if CES11_IDNUM == 13917
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 10982
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813434
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 14955
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 808203
replace fed11_name = "Egmont" if CES11_IDNUM == 952
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 3346
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18710
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior-Nord" if CES11_IDNUM == 809716
replace fed11_name = "Kingston and the Islands / Kingston et les ile" if CES11_IDNUM == 13882
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 14809
replace fed11_name = "Wascana" if CES11_IDNUM == 18055
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17357
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 13555
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 3515
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 21006
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 800017
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 19894
replace fed11_name = "Charlesbourg - Haute - Saint - Charles" if CES11_IDNUM == 9824
replace fed11_name = "Palliser" if CES11_IDNUM == 813105
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20880
replace fed11_name = "Wild Rose                                                              RD" if CES11_IDNUM == 19511
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 15541
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 13879
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 16234
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 16512
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17686
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 8306
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 808196
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 11455
replace fed11_name = "Saint John" if CES11_IDNUM == 2752
replace fed11_name = "Fleetwood - Port Kells" if CES11_IDNUM == 20607
replace fed11_name = "Brant" if CES11_IDNUM == 809446
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 5914
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21683
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 20858
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 11567
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 15219
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 808622
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 12654
replace fed11_name = "" if CES11_IDNUM == 802691
replace fed11_name = "Nepean - Carleton" if CES11_IDNUM == 15903
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 803793
replace fed11_name = "Haliburton - Kawartha Lakes - Brock" if CES11_IDNUM == 15621
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 808910
replace fed11_name = "" if CES11_IDNUM == 817013
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 13604
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18551
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 801408
replace fed11_name = "" if CES11_IDNUM == 816791
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 15977
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 13706
replace fed11_name = "Victoria" if CES11_IDNUM == 21570
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough - Est" if CES11_IDNUM == 12970
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12447
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 10078
replace fed11_name = "Essex" if CES11_IDNUM == 15827
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 14723
replace fed11_name = "Saint-Laurent - Cartierville" if CES11_IDNUM == 803202
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 8205
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 804923
replace fed11_name = "" if CES11_IDNUM == 806433
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 3808
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 16755
replace fed11_name = "Cambridge" if CES11_IDNUM == 13467
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 803026
replace fed11_name = "Calgary Southeast / Calgary - Sud - Est" if CES11_IDNUM == 18552
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 17427
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 14917
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 16420
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 13809
replace fed11_name = "Crowfoot" if CES11_IDNUM == 18960
replace fed11_name = "Prince Edward - Hastings" if CES11_IDNUM == 15440
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 815741
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 14235
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 6564
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 5916
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 9475
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 1781
replace fed11_name = "Fredericton" if CES11_IDNUM == 2305
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 19860
replace fed11_name = "Montcalm" if CES11_IDNUM == 3122
replace fed11_name = "Thornhill" if CES11_IDNUM == 12981
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812489
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 817197
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 21184
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 21121
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 14619
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 810733
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 567
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 16134
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11708
replace fed11_name = "Miramichi" if CES11_IDNUM == 802145
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19528
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 14644
replace fed11_name = "Malpeque" if CES11_IDNUM == 967
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 20317
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 11627
replace fed11_name = "Humber - St. Barbe - Baie Verte" if CES11_IDNUM == 402
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 13802
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 12267
replace fed11_name = "Honore - Mercier" if CES11_IDNUM == 5909
replace fed11_name = "Mississauga South / Mississauga-Sud" if CES11_IDNUM == 811023
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 3539
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 810176
replace fed11_name = "Ottawa - Orl�ans" if CES11_IDNUM == 808319
replace fed11_name = "Durham" if CES11_IDNUM == 15538
replace fed11_name = "Yellowhead" if CES11_IDNUM == 19552
replace fed11_name = "Provencher" if CES11_IDNUM == 17229
replace fed11_name = "" if CES11_IDNUM == 802833
replace fed11_name = "Winnipeg North / Winnipeg - Nord" if CES11_IDNUM == 17042
replace fed11_name = "Vancouver Island North / ile de Vancouver - Nord" if CES11_IDNUM == 21581
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 15810
replace fed11_name = "Guelph" if CES11_IDNUM == 15154
replace fed11_name = "Yellowhead" if CES11_IDNUM == 19086
replace fed11_name = "Quebe" if CES11_IDNUM == 7927
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 21540
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 9847
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 805844
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 14935
replace fed11_name = "Vancouver East / Vancouver-Est" if CES11_IDNUM == 815844
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 14557
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 22435
replace fed11_name = "Palliser" if CES11_IDNUM == 813075
replace fed11_name = "Thornhill" if CES11_IDNUM == 12347
replace fed11_name = "Mississauga East - Cooksville / Mississauga - Est - Cooksville" if CES11_IDNUM == 12111
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 16943
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 11390
replace fed11_name = "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest" if CES11_IDNUM == 801865
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800605
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1538
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18665
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 14949
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 11847
replace fed11_name = "Dufferin - Caledon" if CES11_IDNUM == 11605
replace fed11_name = "Pierrefonds - Dollard" if CES11_IDNUM == 5122
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21097
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21851
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20723
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 4715
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 811305
replace fed11_name = "Trois - Rivieres" if CES11_IDNUM == 10208
replace fed11_name = "North Vancouver" if CES11_IDNUM == 21280
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 15863
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 804319
replace fed11_name = "Laurentides - Labelle" if CES11_IDNUM == 7309
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 663
replace fed11_name = "Thunder Bay - Superior North / Thunder Bay - Superior-Nord" if CES11_IDNUM == 811397
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 805487
replace fed11_name = "Malpeque" if CES11_IDNUM == 800812
replace fed11_name = "" if CES11_IDNUM == 817522
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 816447
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2485
replace fed11_name = "LaSalle - Emard" if CES11_IDNUM == 4809
replace fed11_name = "St. Paul's" if CES11_IDNUM == 807831
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19095
replace fed11_name = "West Nova / Nova-Ouest" if CES11_IDNUM == 801394
replace fed11_name = "Kildonan - St. Paul" if CES11_IDNUM == 812595
replace fed11_name = "" if CES11_IDNUM == 808305
replace fed11_name = "Wetaskiwin" if CES11_IDNUM == 815461
replace fed11_name = "Abbotsford" if CES11_IDNUM == 21729
replace fed11_name = "Drummond" if CES11_IDNUM == 803670
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 16861
replace fed11_name = "Brampton West / Brampton-Ouest" if CES11_IDNUM == 811688
replace fed11_name = "Provencher" if CES11_IDNUM == 812211
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13705
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 19010
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 816128
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 148
replace fed11_name = "Argenteuil - Papineau - Mirabel" if CES11_IDNUM == 4532
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 13819
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 10916
replace fed11_name = "Richmond Hill" if CES11_IDNUM == 11288
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 807000
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 18161
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812733
replace fed11_name = "Wascana" if CES11_IDNUM == 18530
replace fed11_name = "Medicine Hat" if CES11_IDNUM == 19172
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812213
replace fed11_name = "Leeds - Grenville" if CES11_IDNUM == 807594
replace fed11_name = "Fredericton" if CES11_IDNUM == 2157
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2425
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 21321
replace fed11_name = "Provencher" if CES11_IDNUM == 17404
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17106
replace fed11_name = "London West / London - Ouest" if CES11_IDNUM == 15941
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 17152
replace fed11_name = "Essex" if CES11_IDNUM == 16035
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 817407
replace fed11_name = "New Westminster - Coquitlam" if CES11_IDNUM == 19870
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 5054
replace fed11_name = "British Columbia Southern Interior / Colombie-Britannique-Southern" if CES11_IDNUM == 816782
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 813294
replace fed11_name = "St. Paul's" if CES11_IDNUM == 12639
replace fed11_name = "Trinity - Spadina" if CES11_IDNUM == 11973
replace fed11_name = "Westmount - Ville - Marie" if CES11_IDNUM == 2950
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22635
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 13825
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 16480
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19161
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 15097
replace fed11_name = "Calgary West / Calgary-Ouest" if CES11_IDNUM == 814383
replace fed11_name = "Levis - Bellechass" if CES11_IDNUM == 7812
replace fed11_name = "Oshawa" if CES11_IDNUM == 13333
replace fed11_name = "" if CES11_IDNUM == 808917
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 14840
replace fed11_name = "Macleod" if CES11_IDNUM == 814240
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 15823
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18418
replace fed11_name = "Langley" if CES11_IDNUM == 817874
replace fed11_name = "Repentigny" if CES11_IDNUM == 4606
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 12705
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 16270
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 817185
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 815896
replace fed11_name = "St. Catharines" if CES11_IDNUM == 15443
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 810625
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 14333
replace fed11_name = "Parry Sound - Muskoka" if CES11_IDNUM == 809145
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812564
replace fed11_name = "Avalon" if CES11_IDNUM == 352
replace fed11_name = "Laval - Les Iles" if CES11_IDNUM == 3161
replace fed11_name = "Malpeque" if CES11_IDNUM == 867
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2676
replace fed11_name = "Scarborough - Rouge River" if CES11_IDNUM == 807781
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 13737
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 13806
replace fed11_name = "Nipissing - Timiskaming" if CES11_IDNUM == 809711
replace fed11_name = "Kingston and the Islands / Kingston et les �les" if CES11_IDNUM == 811446
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 2385
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 2913
replace fed11_name = "Stormont - Dundas - South Glengarry" if CES11_IDNUM == 14332
replace fed11_name = "Chilliwack - Fraser Canyon" if CES11_IDNUM == 21459
replace fed11_name = "Regina - Qu'Appelle" if CES11_IDNUM == 17690
replace fed11_name = "" if CES11_IDNUM == 804813
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 15535
replace fed11_name = "Richmond - Arthabaska" if CES11_IDNUM == 6808
replace fed11_name = "Ottawa Centre / Ottawa-Centre" if CES11_IDNUM == 811958
replace fed11_name = "Wascana" if CES11_IDNUM == 813157
replace fed11_name = "Selkirk - Interlake" if CES11_IDNUM == 16910
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 19619
replace fed11_name = "Compton - Stanstead" if CES11_IDNUM == 6523
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 16742
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 808165
replace fed11_name = "Malpeque" if CES11_IDNUM == 1263
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 20260
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 5814
replace fed11_name = "Terrebonne - Blainville" if CES11_IDNUM == 5809
replace fed11_name = "" if CES11_IDNUM == 13906
replace fed11_name = "" if CES11_IDNUM == 815006
replace fed11_name = "Malpeque" if CES11_IDNUM == 1322
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1573
replace fed11_name = "Palliser" if CES11_IDNUM == 18384
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19481
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 801274
replace fed11_name = "Laurier - Sainte - Marie" if CES11_IDNUM == 3335
replace fed11_name = "Vegreville - Wainwright" if CES11_IDNUM == 19348
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 12831
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 801293
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 21171
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20762
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 801668
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 808657
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 12747
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17544
replace fed11_name = "Skeena - Bulkley Valley" if CES11_IDNUM == 22406
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1402
replace fed11_name = "Etobicoke Centre / Etobicoke - Centre" if CES11_IDNUM == 11504
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 800390
replace fed11_name = "Ancaster - Dundas - Flamborough - Westdale" if CES11_IDNUM == 807939
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 17798
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1204
replace fed11_name = "Huron - Bruce" if CES11_IDNUM == 14950
replace fed11_name = "Carleton - Mississippi Mills" if CES11_IDNUM == 807629
replace fed11_name = "Calgary Southwest / Calgary-Sud-Ouest" if CES11_IDNUM == 814714
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 11829
replace fed11_name = "Fundy Royal" if CES11_IDNUM == 801938
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 7958
replace fed11_name = "Calgary Centre / Calgary - Centre" if CES11_IDNUM == 18920
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 19021
replace fed11_name = "Souris - Moose Mountain" if CES11_IDNUM == 18230
replace fed11_name = "Crowfoot" if CES11_IDNUM == 19272
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801084
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 16609
replace fed11_name = "" if CES11_IDNUM == 813278
replace fed11_name = "Richmond" if CES11_IDNUM == 21064
replace fed11_name = "Burlington" if CES11_IDNUM == 14240
replace fed11_name = "Guelph" if CES11_IDNUM == 15660
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11222
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21645
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 64
replace fed11_name = "North Vancouver" if CES11_IDNUM == 816406
replace fed11_name = "Saint Boniface / Saint - Boniface" if CES11_IDNUM == 16901
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 61
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 21846
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 15770
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 810644
replace fed11_name = "Blackstrap" if CES11_IDNUM == 17904
replace fed11_name = "Halifax" if CES11_IDNUM == 1629
replace fed11_name = "Scarborough Centre / Scarborough - Centre" if CES11_IDNUM == 11742
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 3285
replace fed11_name = "Charlottetown" if CES11_IDNUM == 1296
replace fed11_name = "Halton" if CES11_IDNUM == 12266
replace fed11_name = "Lethbridge" if CES11_IDNUM == 814558
replace fed11_name = "Sydney - Victoria" if CES11_IDNUM == 1961
replace fed11_name = "Saint Boniface / Saint-Boniface" if CES11_IDNUM == 812396
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812152
replace fed11_name = "Calgary Southwest / Calgary - Sud - Ouest" if CES11_IDNUM == 18675
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 14276
replace fed11_name = "Niagara Falls" if CES11_IDNUM == 15455
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 9469
replace fed11_name = "Mississauga - Erindale" if CES11_IDNUM == 13242
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 810029
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 810232
replace fed11_name = "Vancouver Kingsway" if CES11_IDNUM == 20634
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20262
replace fed11_name = "Jonquiere - Alma" if CES11_IDNUM == 10205
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 543
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 813288
replace fed11_name = "Sherbrooke" if CES11_IDNUM == 10306
replace fed11_name = "Oshawa" if CES11_IDNUM == 811319
replace fed11_name = "Halifax West / Halifax - Ouest" if CES11_IDNUM == 1595
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 816487
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 20121
replace fed11_name = "Dauphin - Swan River - Marquette" if CES11_IDNUM == 17231
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 21571
replace fed11_name = "Malpeque" if CES11_IDNUM == 1072
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 14541
replace fed11_name = "Sault Ste. Marie" if CES11_IDNUM == 810646
replace fed11_name = "Elgin - Middlesex - London" if CES11_IDNUM == 810684
replace fed11_name = "" if CES11_IDNUM == 816301
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 6725
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 15320
replace fed11_name = "Saint - Maurice - Champlain" if CES11_IDNUM == 10114
replace fed11_name = "Ottawa South / Ottawa - Sud" if CES11_IDNUM == 14055
replace fed11_name = "Halifax" if CES11_IDNUM == 1592
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1929
replace fed11_name = "Halton" if CES11_IDNUM == 13033
replace fed11_name = "Madawaska - Restigouche" if CES11_IDNUM == 2177
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 803091
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 14174
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 13109
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 11612
replace fed11_name = "Egmont" if CES11_IDNUM == 1333
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 1713
replace fed11_name = "Westmount - Ville-Marie" if CES11_IDNUM == 803329
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 806998
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 15677
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 21451
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 816828
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15340
replace fed11_name = "Mont - Royal / Mount Royal" if CES11_IDNUM == 4410
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 6823
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 22339
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1413
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 16980
replace fed11_name = "Gatineau" if CES11_IDNUM == 6935
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19108
replace fed11_name = "Willowdale" if CES11_IDNUM == 12361
replace fed11_name = "Perth - Wellington" if CES11_IDNUM == 806680
replace fed11_name = "Barrie" if CES11_IDNUM == 13367
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1751
replace fed11_name = "Wascana" if CES11_IDNUM == 813175
replace fed11_name = "Notre - Dame - de - Grace - Lachine" if CES11_IDNUM == 4401
replace fed11_name = "Vancouver Quadra" if CES11_IDNUM == 21037
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19119
replace fed11_name = "Charlottetown" if CES11_IDNUM == 800769
replace fed11_name = "Markham - Unionville" if CES11_IDNUM == 11955
replace fed11_name = "Essex" if CES11_IDNUM == 809056
replace fed11_name = "Riviere - du - Nord" if CES11_IDNUM == 4244
replace fed11_name = "Burlington" if CES11_IDNUM == 14347
replace fed11_name = "Malpeque" if CES11_IDNUM == 755
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 24
replace fed11_name = "Cariboo - Prince George" if CES11_IDNUM == 22060
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812387
replace fed11_name = "Megantic - L'Erable" if CES11_IDNUM == 6584
replace fed11_name = "London - Fanshawe" if CES11_IDNUM == 13673
replace fed11_name = "Kitchener - Conestoga" if CES11_IDNUM == 15933
replace fed11_name = "Mississauga - Streetsville" if CES11_IDNUM == 11534
replace fed11_name = "Wascana" if CES11_IDNUM == 813293
replace fed11_name = "" if CES11_IDNUM == 817629
replace fed11_name = "Jeanne-Le Ber" if CES11_IDNUM == 802977
replace fed11_name = "Edmonton - Sherwood Park" if CES11_IDNUM == 18688
replace fed11_name = "Langley" if CES11_IDNUM == 19656
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 813375
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11322
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 13279
replace fed11_name = "Bruce - Grey - Owen Sound" if CES11_IDNUM == 811786
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 807715
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 3406
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 17880
replace fed11_name = "North Vancouver" if CES11_IDNUM == 20616
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801099
replace fed11_name = "" if CES11_IDNUM == 814526
replace fed11_name = "Windsor - Tecumseh" if CES11_IDNUM == 16423
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 809437
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 2847
replace fed11_name = "Brandon - Souris" if CES11_IDNUM == 812460
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 12056
replace fed11_name = "Portage - Lisgar" if CES11_IDNUM == 17660
replace fed11_name = "Louis - Heber" if CES11_IDNUM == 8596
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 16881
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 20911
replace fed11_name = "" if CES11_IDNUM == 807194
replace fed11_name = "Oakville" if CES11_IDNUM == 10957
replace fed11_name = "North Vancouver" if CES11_IDNUM == 19910
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 14035
replace fed11_name = "Rosemont - La Petite-Patrie" if CES11_IDNUM == 802595
replace fed11_name = "Calgary East / Calgary-Est" if CES11_IDNUM == 814535
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 16956
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey-Sud - White Rock -" if CES11_IDNUM == 816615
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 808500
replace fed11_name = "Gatineau" if CES11_IDNUM == 7568
replace fed11_name = "Rosemont - La Petite - Patrie" if CES11_IDNUM == 4435
replace fed11_name = "Guelph" if CES11_IDNUM == 13357
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 808441
replace fed11_name = "Trois-Rivi�res" if CES11_IDNUM == 803960
replace fed11_name = "" if CES11_IDNUM == 807648
replace fed11_name = "Essex" if CES11_IDNUM == 16296
replace fed11_name = "Ahuntsic" if CES11_IDNUM == 805288
replace fed11_name = "Provencher" if CES11_IDNUM == 16843
replace fed11_name = "Burnaby - New Westminster" if CES11_IDNUM == 817380
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13831
replace fed11_name = "Trois-Rivi�res" if CES11_IDNUM == 805608
replace fed11_name = "Glengarry - Prescott - Russell" if CES11_IDNUM == 13320
replace fed11_name = "Saint Boniface / Saint-Boniface" if CES11_IDNUM == 812101
replace fed11_name = "London North Centre / London - Centre - Nord" if CES11_IDNUM == 14354
replace fed11_name = "Calgary Southwest / Calgary - Sud - Ouest" if CES11_IDNUM == 18689
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 801319
replace fed11_name = "York - Simcoe" if CES11_IDNUM == 809678
replace fed11_name = "Saint-Hyacinthe - Bagot" if CES11_IDNUM == 804539
replace fed11_name = "Ottawa - Vanier" if CES11_IDNUM == 15109
replace fed11_name = "Egmont" if CES11_IDNUM == 1156
replace fed11_name = "Westmount - Ville-Marie" if CES11_IDNUM == 805735
replace fed11_name = "Repentigny" if CES11_IDNUM == 4623
replace fed11_name = "Winnipeg South / Winnipeg - Sud" if CES11_IDNUM == 17088
replace fed11_name = "La Pointe - de - lile" if CES11_IDNUM == 3609
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 303
replace fed11_name = "Calgary East / Calgary-Est" if CES11_IDNUM == 814577
replace fed11_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if CES11_IDNUM == 810286
replace fed11_name = "Yorkton - Melville" if CES11_IDNUM == 18131
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 15505
replace fed11_name = "Parkdale - High Park" if CES11_IDNUM == 10963
replace fed11_name = "Calgary East / Calgary - Est" if CES11_IDNUM == 18676
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 16534
replace fed11_name = "Wild Rose" if CES11_IDNUM == 19137
replace fed11_name = "Brome - Missisquoi" if CES11_IDNUM == 6356
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1641
replace fed11_name = "Saskatoon - Humboldt" if CES11_IDNUM == 18330
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 813348
replace fed11_name = "Peterborough" if CES11_IDNUM == 809943
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 6783
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 12438
replace fed11_name = "Langley" if CES11_IDNUM == 20831
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 800303
replace fed11_name = "Prince George - Peace River" if CES11_IDNUM == 22524
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 21518
replace fed11_name = "Richmond" if CES11_IDNUM == 20223
replace fed11_name = "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup" if CES11_IDNUM == 9003
replace fed11_name = "Kitchener - Waterloo" if CES11_IDNUM == 15635
replace fed11_name = "Bonavista - Gander - Grand Falls - Windsor" if CES11_IDNUM == 800189
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 816927
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 808676
replace fed11_name = "Mississauga - Brampton South / Mississauga - Brampton - Sud" if CES11_IDNUM == 11935
replace fed11_name = "British Columbia Southern Interior / Colombie-Britannique-Southern" if CES11_IDNUM == 817242
replace fed11_name = "Cambridge" if CES11_IDNUM == 15051
replace fed11_name = "Saanich - Gulf Islands" if CES11_IDNUM == 22657
replace fed11_name = "Charleswood - St. James - Assiniboia" if CES11_IDNUM == 812569
replace fed11_name = "Vaudreuil - Soulanges" if CES11_IDNUM == 4732
replace fed11_name = "Kings - Hants" if CES11_IDNUM == 1672
replace fed11_name = "Saint - Lambert" if CES11_IDNUM == 3278
replace fed11_name = "" if CES11_IDNUM == 813586
replace fed11_name = "Palliser" if CES11_IDNUM == 18405
replace fed11_name = "Riviere - des - Mille - Iles" if CES11_IDNUM == 4805
replace fed11_name = "Victoria" if CES11_IDNUM == 22543
replace fed11_name = "Lethbridge" if CES11_IDNUM == 814436
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 801559
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 11849
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3807
replace fed11_name = "Alfred-Pellan" if CES11_IDNUM == 803958
replace fed11_name = "Northumberland - Quinte West" if CES11_IDNUM == 15868
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18435
replace fed11_name = "Avalon" if CES11_IDNUM == 106
replace fed11_name = "Macleod" if CES11_IDNUM == 19496
replace fed11_name = "Winnipeg South / Winnipeg-Sud" if CES11_IDNUM == 812582
replace fed11_name = "Cumberland - Colchester - Musquodoboit Valley" if CES11_IDNUM == 801282
replace fed11_name = "Brampton - Springdale" if CES11_IDNUM == 11622
replace fed11_name = "Kamloops - Thompson - Cariboo" if CES11_IDNUM == 22292
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 801921
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 807209
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 5817
replace fed11_name = "Shefford" if CES11_IDNUM == 6721
replace fed11_name = "South Surrey - White Rock - Cloverdale / Surrey - Sud - White" if CES11_IDNUM == 20036
replace fed11_name = "Victoria" if CES11_IDNUM == 21436
replace fed11_name = "Chatham - Kent - Essex" if CES11_IDNUM == 16540
replace fed11_name = "Blackstrap" if CES11_IDNUM == 18089
replace fed11_name = "Saint - Jean" if CES11_IDNUM == 9825
replace fed11_name = "Haute-Gasp�sie - La Mitis - Matane - Matap�dia" if CES11_IDNUM == 804062
replace fed11_name = "Malpeque" if CES11_IDNUM == 946
replace fed11_name = "" if CES11_IDNUM == 817320
replace fed11_name = "Calgary - Nose Hill" if CES11_IDNUM == 813939
replace fed11_name = "Fredericton" if CES11_IDNUM == 801731
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 816120
replace fed11_name = "" if CES11_IDNUM == 816369
replace fed11_name = "Lethbridge" if CES11_IDNUM == 19415
replace fed11_name = "Abbotsford" if CES11_IDNUM == 817661
replace fed11_name = "" if CES11_IDNUM == 811525
replace fed11_name = "Fredericton" if CES11_IDNUM == 2219
replace fed11_name = "Red Deer" if CES11_IDNUM == 19082
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 2247
replace fed11_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if CES11_IDNUM == 21781
replace fed11_name = "Ajax - Pickering" if CES11_IDNUM == 12627
replace fed11_name = "Miramichi" if CES11_IDNUM == 801831
replace fed11_name = "Shefford" if CES11_IDNUM == 9124
replace fed11_name = "Welland" if CES11_IDNUM == 15122
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21974
replace fed11_name = "Pickering - Scarborough East / Pickering - Scarborough-Est" if CES11_IDNUM == 807055
replace fed11_name = "Saint - Bruno - Saint - Hubert" if CES11_IDNUM == 3312
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 21009
replace fed11_name = "Edmonton East / Edmonton - Est" if CES11_IDNUM == 19070
replace fed11_name = "Vercheres - Les Patriotes" if CES11_IDNUM == 5831
replace fed11_name = "Churchill" if CES11_IDNUM == 16811
replace fed11_name = "Scarborough Southwest / Scarborough - Sud - Ouest" if CES11_IDNUM == 12983
replace fed11_name = "Eglinton - Lawrence" if CES11_IDNUM == 810118
replace fed11_name = "Malpeque" if CES11_IDNUM == 800548
replace fed11_name = "Edmonton - St. Albert" if CES11_IDNUM == 18617
replace fed11_name = "Kelowna - Lake Country" if CES11_IDNUM == 21604
replace fed11_name = "Thornhill" if CES11_IDNUM == 11247
replace fed11_name = "Timmins - James Bay / Timmins - Baie James" if CES11_IDNUM == 14951
replace fed11_name = "Repentigny" if CES11_IDNUM == 806097
replace fed11_name = "Dartmouth - Cole Harbour" if CES11_IDNUM == 1686
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 817088
replace fed11_name = "Cheteauguay - Saint - Constant" if CES11_IDNUM == 4628
replace fed11_name = "Haldimand - Norfolk" if CES11_IDNUM == 13723
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 6986
replace fed11_name = "Regina - Lumsden - Lake Centre" if CES11_IDNUM == 18053
replace fed11_name = "Surrey North / Surrey - Nord" if CES11_IDNUM == 19604
replace fed11_name = "Okanagan - Coquihalla" if CES11_IDNUM == 22391
replace fed11_name = "Wellington - Halton Hills" if CES11_IDNUM == 12346
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 8212
replace fed11_name = "Ottawa Centre / Ottawa - Centre" if CES11_IDNUM == 13637
replace fed11_name = "Tobique - Mactaquac" if CES11_IDNUM == 801667
replace fed11_name = "Cardigan" if CES11_IDNUM == 896
replace fed11_name = "Elmwood - Transcona" if CES11_IDNUM == 812775
replace fed11_name = "Kitchener Centre / Kitchener - Centre" if CES11_IDNUM == 13873
replace fed11_name = "Don Valley East / Don Valley - Est" if CES11_IDNUM == 12327
replace fed11_name = "Halifax West / Halifax-Ouest" if CES11_IDNUM == 801409
replace fed11_name = "Durham" if CES11_IDNUM == 13998
replace fed11_name = "South Shore - St. Margaret's" if CES11_IDNUM == 2065
replace fed11_name = "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek" if CES11_IDNUM == 14208
replace fed11_name = "Provencher" if CES11_IDNUM == 17453
replace fed11_name = "Chambly - Borduas" if CES11_IDNUM == 9201
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 813289
replace fed11_name = "Edmonton - Spruce Grove" if CES11_IDNUM == 814026
replace fed11_name = "Vancouver East / Vancouver - Est" if CES11_IDNUM == 19881
replace fed11_name = "Toronto - Danforth" if CES11_IDNUM == 10766
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 14930
replace fed11_name = "Ottawa - Orleans" if CES11_IDNUM == 16620
replace fed11_name = "Abbotsford" if CES11_IDNUM == 21796
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800052
replace fed11_name = "" if CES11_IDNUM == 805168
replace fed11_name = "Chicoutimi - Le Fjord" if CES11_IDNUM == 8098
replace fed11_name = "Egmont" if CES11_IDNUM == 1297
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 818195
replace fed11_name = "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook" if CES11_IDNUM == 14105
replace fed11_name = "Edmonton Centre / Edmonton-Centre" if CES11_IDNUM == 815406
replace fed11_name = "Esquimalt - Juan de Fuca" if CES11_IDNUM == 21544
replace fed11_name = "Hamilton Mountain" if CES11_IDNUM == 15025
replace fed11_name = "Thunder Bay - Rainy River" if CES11_IDNUM == 15273
replace fed11_name = "Laval" if CES11_IDNUM == 6007
replace fed11_name = "Abitibi - Baie - James - Nunavik - Eeyou" if CES11_IDNUM == 6470
replace fed11_name = "Beauport - Limoilou" if CES11_IDNUM == 6457
replace fed11_name = "Random - Burin - St. George's" if CES11_IDNUM == 599
replace fed11_name = "Kootenay - Columbia" if CES11_IDNUM == 22140
replace fed11_name = "Ottawa West - Nepean / Ottawa-Ouest - Nepean" if CES11_IDNUM == 809268
replace fed11_name = "Brant" if CES11_IDNUM == 14755
replace fed11_name = "Brant" if CES11_IDNUM == 15910
replace fed11_name = "Louis - Saint - Laurent" if CES11_IDNUM == 8335
replace fed11_name = "St. John's East / St. John's - Est" if CES11_IDNUM == 72
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 3134
replace fed11_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if CES11_IDNUM == 800226
replace fed11_name = "Jeanne - Le Ber" if CES11_IDNUM == 4214
replace fed11_name = "Richmond" if CES11_IDNUM == 20878
replace fed11_name = "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl" if CES11_IDNUM == 230
replace fed11_name = "Yellowhead" if CES11_IDNUM == 19413
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 12509
replace fed11_name = "Simcoe - Grey" if CES11_IDNUM == 11294
replace fed11_name = "Newmarket - Aurora" if CES11_IDNUM == 13005
replace fed11_name = "Vancouver South / Vancouver - Sud" if CES11_IDNUM == 19906
replace fed11_name = "Nanaimo - Cowichan" if CES11_IDNUM == 22320
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 15959
replace fed11_name = "Scarborough Southwest / Scarborough-Sud-Ouest" if CES11_IDNUM == 808237
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 13828
replace fed11_name = "Berthier - Maskinong�" if CES11_IDNUM == 806069
replace fed11_name = "Labrador" if CES11_IDNUM == 452
replace fed11_name = "Newton - North Delta / Newton - Delta - Nord" if CES11_IDNUM == 21182
replace fed11_name = "Labrador" if CES11_IDNUM == 800463
replace fed11_name = "Moncton - Riverview - Dieppe" if CES11_IDNUM == 801732
replace fed11_name = "Chatham-Kent - Essex" if CES11_IDNUM == 810321
replace fed11_name = "Simcoe North / Simcoe - Nord" if CES11_IDNUM == 14454
replace fed11_name = "Nanaimo - Alberni" if CES11_IDNUM == 22323
replace fed11_name = "Beaches - East York" if CES11_IDNUM == 10922
replace fed11_name = "Shefford" if CES11_IDNUM == 6324
replace fed11_name = "Brossard - La Prairie" if CES11_IDNUM == 4343
replace fed11_name = "Pitt Meadows - Maple Ridge - Mission" if CES11_IDNUM == 815679
replace fed11_name = "Etobicoke - Lakeshore" if CES11_IDNUM == 11978
replace fed11_name = "Lotbiniere - Chutes - de - la - Chaudi�" if CES11_IDNUM == 8233
replace fed11_name = "Ottawa West - Nepean / Ottawa - Ouest - Nepean" if CES11_IDNUM == 16016
replace fed11_name = "Don Valley West / Don Valley - Ouest" if CES11_IDNUM == 12640
replace fed11_name = "Port Moody - Westwood - Port Coquitlam" if CES11_IDNUM == 20219
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 14512
replace fed11_name = "Acadie - Bathurst" if CES11_IDNUM == 2745
replace fed11_name = "Toronto Centre / Toronto - Centre" if CES11_IDNUM == 11692
replace fed11_name = "Berthier - Maskinonge" if CES11_IDNUM == 10528
replace fed11_name = "York Centre / York - Centre" if CES11_IDNUM == 12669
replace fed11_name = "Victoria" if CES11_IDNUM == 22615
replace fed11_name = "Papineau" if CES11_IDNUM == 3103
replace fed11_name = "Brant" if CES11_IDNUM == 16219
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 19627
replace fed11_name = "Central Nova / Nova - Centre" if CES11_IDNUM == 1807
replace fed11_name = "Cypress Hills - Grasslands" if CES11_IDNUM == 18503
replace fed11_name = "Saskatoon - Wanuskewin" if CES11_IDNUM == 18342
replace fed11_name = "Gaspeie - iles - de - la - Madelei" if CES11_IDNUM == 10218
replace fed11_name = "Winnipeg South Centre / Winnipeg - Centre - Sud" if CES11_IDNUM == 16834
replace fed11_name = "Lanark - Frontenac - Lennox and Addington" if CES11_IDNUM == 810568
replace fed11_name = "Renfrew - Nipissing - Pembroke" if CES11_IDNUM == 14844
replace fed11_name = "Hull - Aylmer" if CES11_IDNUM == 8582
replace fed11_name = "Marc - Aurele - Fortin" if CES11_IDNUM == 2951
replace fed11_name = "Vancouver Centre / Vancouver - Centre" if CES11_IDNUM == 20069
replace fed11_name = "Saskatoon - Rosetown - Biggar" if CES11_IDNUM == 813407
replace fed11_name = "Churchill" if CES11_IDNUM == 16981
replace fed11_name = "Sarnia - Lambton" if CES11_IDNUM == 807600
replace fed11_name = "Beauce" if CES11_IDNUM == 803470
replace fed11_name = "Whitby - Oshawa" if CES11_IDNUM == 811003

gen district_name = ""

replace district_name = "Abbotsford" if fed11_name == "Abbotsford"
replace district_name = "Abitibi - Baie-James - Nunavik - Eeyou" if fed11_name == "Abitibi - Baie - James - Nunavik - Eeyou"
replace district_name = "Abitibi-Temiscamingue" if fed11_name == "Abitibi - Temiscamingue"
replace district_name = "Abitibi-Temiscamingue" if fed11_name == "Abitibi - T�miscamingue"
replace district_name = "Acadie - Bathurst" if fed11_name == "Acadie - Bathurst"
replace district_name = "Ahuntsic" if fed11_name == "Ahuntsic"
replace district_name = "Ajax - Pickering" if fed11_name == "Ajax - Pickering"
replace district_name = "Alfred-Pellan" if fed11_name == "Alfred - Pellan"
replace district_name = "Alfred-Pellan" if fed11_name == "Alfred-Pellan"
replace district_name = "Algoma - Manitoulin - Kapuskasing" if fed11_name == "Algoma - Manitoulin - Kapuskasing"
replace district_name = "Ancaster - Dundas - Flamborough - Westdale" if fed11_name == "Ancaster - Dundas - Flamborough - Westdale"
replace district_name = "Argenteuil - Papineau - Mirabel" if fed11_name == "Argenteuil - Papineau - Mirabel"
replace district_name = "Avalon" if fed11_name == "Avalon"
replace district_name = "Barrie" if fed11_name == "Barrie"
replace district_name = "Bas-Richelieu - Nicolet - Becancour" if fed11_name == "Bas - Richelieu - Nicolet - Becancour"
replace district_name = "Bas-Richelieu - Nicolet - Becancour" if fed11_name == "Bas-Richelieu - Nicolet - B�cancour"
replace district_name = "Battlefords - Lloydminster" if fed11_name == "Battlefords - Lloydminster"
replace district_name = "Beaches - East York" if fed11_name == "Beaches - East York"
replace district_name = "Beauce" if fed11_name == "Beauce"
replace district_name = "Beauharnois - Salaberry" if fed11_name == "Beauharnois - Salaberry"
replace district_name = "Beauport - Limoilou" if fed11_name == "Beauport - Limoilou"
replace district_name = "Beausejour" if fed11_name == "Beausejour"
replace district_name = "Berthier - Maskinonge" if fed11_name == "Berthier - Maskinong�"
replace district_name = "Berthier - Maskinonge" if fed11_name == "Berthier - Maskinonge"
replace district_name = "Blackstrap" if fed11_name == "Blackstrap"
replace district_name = "Bonavista - Gander - Grand Falls - Windsor" if fed11_name == "Bonavista - Gander - Grand Falls - Windsor"
replace district_name = "Bourassa" if fed11_name == "Bourassa"
replace district_name = "Bramalea - Gore - Malton" if fed11_name == "Bramalea - Gore - Malton"
replace district_name = "Brampton - Springdale" if fed11_name == "Brampton - Springdale"
replace district_name = "Brampton West / Brampton-Ouest" if fed11_name == "Brampton West / Brampton - Ouest"
replace district_name = "Brampton West / Brampton-Ouest" if fed11_name == "Brampton West / Brampton-Ouest"
replace district_name = "Brandon - Souris" if fed11_name == "Brandon - Souris"
replace district_name = "Brant" if fed11_name == "Brant"
replace district_name = "British Columbia Southern Interior / Colombie-Britannique-Southern" if fed11_name == "British Columbia Southern Interior / Colombie - Britannique - Southe"
replace district_name = "British Columbia Southern Interior / Colombie-Britannique-Southern" if fed11_name == "British Columbia Southern Interior / Colombie-Britannique-Southern"
replace district_name = "Brome-Missisquoi" if fed11_name == "Brome - Missisquoi"
replace district_name = "Brossard - La Prairie" if fed11_name == "Brossard - La Prairie"
replace district_name = "Bruce - Grey - Owen Sound" if fed11_name == "Bruce - Grey - Owen Sound"
replace district_name = "Burlington" if fed11_name == "Burlington"
replace district_name = "Burnaby - Douglas" if fed11_name == "Burnaby - Douglas"
replace district_name = "Burnaby - New Westminster" if fed11_name == "Burnaby - New Westminster"
replace district_name = "Calgary - Nose Hill" if fed11_name == "Calgary - Nose Hill"
replace district_name = "Calgary Centre-North / Calgary-Centre-Nord" if fed11_name == "Calgary Centre - North / Calgary - Centre - Nord"
replace district_name = "Calgary Centre / Calgary-Centre" if fed11_name == "Calgary Centre / Calgary - Centre"
replace district_name = "Calgary Centre / Calgary-Centre" if fed11_name == "Calgary Centre / Calgary-Centre"
replace district_name = "Calgary Centre-North / Calgary-Centre-Nord" if fed11_name == "Calgary Centre-North / Calgary-Centre-Nord"
replace district_name = "Calgary East / Calgary-Est" if fed11_name == "Calgary East / Calgary - Est"
replace district_name = "Calgary East / Calgary-Est" if fed11_name == "Calgary East / Calgary-Est"
replace district_name = "Calgary Northeast / Calgary-Nord-Est" if fed11_name == "Calgary Northeast / Calgary - Nord - Est"
replace district_name = "Calgary Northeast / Calgary-Nord-Est" if fed11_name == "Calgary Northeast / Calgary-Nord-Est"
replace district_name = "Calgary Southeast / Calgary-Sud-Est" if fed11_name == "Calgary Southeast / Calgary - Sud - Est"
replace district_name = "Calgary Southeast / Calgary-Sud-Est" if fed11_name == "Calgary Southeast / Calgary-Sud-Est"
replace district_name = "Calgary Southwest / Calgary-Sud-Ouest" if fed11_name == "Calgary Southwest / Calgary - Sud - Ouest"
replace district_name = "Calgary Southwest / Calgary-Sud-Ouest" if fed11_name == "Calgary Southwest / Calgary-Sud-Ouest"
replace district_name = "Calgary West / Calgary-Ouest" if fed11_name == "Calgary West / Calgary - Ouest"
replace district_name = "Calgary West / Calgary-Ouest" if fed11_name == "Calgary West / Calgary-Ouest"
replace district_name = "Cambridge" if fed11_name == "Cambridge"
replace district_name = "Cape Breton - Canso" if fed11_name == "Cape Breton - Canso"
replace district_name = "Cardigan" if fed11_name == "Cardigan"
replace district_name = "Cariboo - Prince George" if fed11_name == "Cariboo - Prince George"
replace district_name = "Carleton - Mississippi Mills" if fed11_name == "Carleton - Mississippi Mills"
replace district_name = "Central Nova / Nova-Centre" if fed11_name == "Central Nova / Nova - Centre"
replace district_name = "Central Nova / Nova-Centre" if fed11_name == "Central Nova / Nova-Centre"
replace district_name = "Chambly - Borduas" if fed11_name == "Chambly - Borduas"
replace district_name = "Charlesbourg - Haute-Saint-Charles" if fed11_name == "Charlesbourg - Haute - Saint - Charles"
replace district_name = "Charleswood - St. James - Assiniboia" if fed11_name == "Charleswood - St. James - Assiniboia"
replace district_name = "Charlottetown" if fed11_name == "Charlottetown"
replace district_name = "Chatham - Kent - Essex" if fed11_name == "Chatham - Kent - Essex"
replace district_name = "Chatham - Kent - Essex" if fed11_name == "Chatham-Kent - Essex"
replace district_name = "Chateauguay - Saint-Constant" if fed11_name == "Cheteauguay - Saint - Constant"
replace district_name = "Chicoutimi - Le Fjord" if fed11_name == "Chicoutimi - Le Fjord"
replace district_name = "Chilliwack - Fraser Canyon" if fed11_name == "Chilliwack - Fraser Canyon"
replace district_name = "Chateauguay - Saint-Constant" if fed11_name == "Ch�teauguay - Saint-Constant"
replace district_name = "Chateauguay - Saint-Constant" if fed11_name == "Cheteauguay - Saint - Constant"
replace district_name = "Churchill" if fed11_name == "Churchill"
replace district_name = "Compton - Stanstead" if fed11_name == "Compton - Stanstead"
replace district_name = "Crowfoot" if fed11_name == "Crowfoot"
replace district_name = "Cumberland - Colchester - Musquodoboit Valley" if fed11_name == "Cumberland - Colchester - Musquodoboit Valley"
replace district_name = "Cypress Hills - Grasslands" if fed11_name == "Cypress Hills - Grasslands"
replace district_name = "Dartmouth - Cole Harbour" if fed11_name == "Dartmouth - Cole Harbour"
replace district_name = "Dauphin - Swan River - Marquette" if fed11_name == "Dauphin - Swan River - Marquette"
replace district_name = "Davenport" if fed11_name == "Davenport"
replace district_name = "Delta - Richmond East / Delta - Richmond-Est" if fed11_name == "Delta - Richmond East / Delta - Richmond - Est"
replace district_name = "Delta - Richmond East / Delta - Richmond-Est" if fed11_name == "Delta - Richmond East / Delta - Richmond-Est"
replace district_name = "Desnethe - Missinippi - Churchill River / Desnethe - Missinippi - Churchill River" if fed11_name == "Desneth� - Missinippi - Churchill River / Desneth� - Missinippi - R"
replace district_name = "Desnethe - Missinippi - Churchill River / Desnethe - Missinippi - Churchill River" if fed11_name == "Desneth? - Missinippi - Churchill River / Desneth? - Missinippi"
replace district_name = "Don Valley East / Don Valley-Est" if fed11_name == "Don Valley East / Don Valley - Est"
replace district_name = "Don Valley West / Don Valley-Ouest" if fed11_name == "Don Valley West / Don Valley - Ouest"
replace district_name = "Don Valley West / Don Valley-Ouest" if fed11_name == "Don Valley West / Don Valley-Ouest"
replace district_name = "Drummond" if fed11_name == "Drummond"
replace district_name = "Dufferin - Caledon" if fed11_name == "Dufferin - Caledon"
replace district_name = "Durham" if fed11_name == "Durham"
replace district_name = "Edmonton - Leduc" if fed11_name == "Edmonton - Leduc"
replace district_name = "Edmonton - Mill Woods - Beaumont" if fed11_name == "Edmonton - Mill Woods - Beaumont"
replace district_name = "Edmonton - Sherwood Park" if fed11_name == "Edmonton - Sherwood Park"
replace district_name = "Edmonton - Spruce Grove" if fed11_name == "Edmonton - Spruce Grove"
replace district_name = "Edmonton - St. Albert" if fed11_name == "Edmonton - St. Albert"
replace district_name = "Edmonton - Strathcona" if fed11_name == "Edmonton - Strathcona"
replace district_name = "Edmonton Centre / Edmonton-Centre" if fed11_name == "Edmonton Centre / Edmonton - Centre"
replace district_name = "Edmonton Centre / Edmonton-Centre" if fed11_name == "Edmonton Centre / Edmonton-Centre"
replace district_name = "Edmonton East / Edmonton-Est" if fed11_name == "Edmonton East / Edmonton - Est"
replace district_name = "Edmonton East / Edmonton-Est" if fed11_name == "Edmonton East / Edmonton-Est"
replace district_name = "Eglinton - Lawrence" if fed11_name == "Eglinton - Lawrence"
replace district_name = "Egmont" if fed11_name == "Egmont"
replace district_name = "Elgin - Middlesex - London" if fed11_name == "Elgin - Middlesex - London"
replace district_name = "Elmwood - Transcona" if fed11_name == "Elmwood - Transcona"
replace district_name = "Esquimalt - Juan de Fuca" if fed11_name == "Esquimalt - Juan de Fuca"
replace district_name = "Essex" if fed11_name == "Essex"
replace district_name = "Etobicoke - Lakeshore" if fed11_name == "Etobicoke - Lakeshore"
replace district_name = "Etobicoke Centre / Etobicoke-Centre" if fed11_name == "Etobicoke Centre / Etobicoke - Centre"
replace district_name = "Etobicoke Centre / Etobicoke-Centre" if fed11_name == "Etobicoke Centre / Etobicoke-Centre"
replace district_name = "Etobicoke North / Etobicoke-Nord" if fed11_name == "Etobicoke North / Etobicoke - Nord"
replace district_name = "Fleetwood - Port Kells" if fed11_name == "Fleetwood - Port Kells"
replace district_name = "Fort McMurray - Athabasca" if fed11_name == "Fort McMurray - Athabasca"
replace district_name = "Fredericton" if fed11_name == "Fredericton"
replace district_name = "Fundy Royal" if fed11_name == "Fundy Royal"
replace district_name = "Gaspesie - Iles-de-la-Madeleine" if fed11_name == "Gaspeie - iles - de - la - Madelei"
replace district_name = "Gatineau" if fed11_name == "Gatineau"
replace district_name = "Glengarry - Prescott - Russell" if fed11_name == "Glengarry - Prescott - Russell"
replace district_name = "Guelph" if fed11_name == "Guelph"
replace district_name = "Haldimand - Norfolk" if fed11_name == "Haldimand - Norfolk"
replace district_name = "Haliburton - Kawartha Lakes - Brock" if fed11_name == "Haliburton - Kawartha Lakes - Brock"
replace district_name = "Halifax" if fed11_name == "Halifax"
replace district_name = "Halifax West / Halifax-Ouest" if fed11_name == "Halifax West / Halifax - Ouest"
replace district_name = "Halifax West / Halifax-Ouest" if fed11_name == "Halifax West / Halifax-Ouest"
replace district_name = "Halton" if fed11_name == "Halton"
replace district_name = "Hamilton Centre / Hamilton-Centre" if fed11_name == "Hamilton Centre / Hamilton - Centre"
replace district_name = "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek" if fed11_name == "Hamilton East - Stoney Creek / Hamilton - Est - Stoney Creek"
replace district_name = "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek" if fed11_name == "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek"
replace district_name = "Hamilton Mountain" if fed11_name == "Hamilton Mountain"
replace district_name = "Haute-Gaspesie - La Mitis - Matane - Matapedia" if fed11_name == "Haute - Gaspesie - La Mitis - Matane - Mataped"
replace district_name = "Haute-Gaspesie - La Mitis - Matane - Matapedia" if fed11_name == "Haute-Gasp�sie - La Mitis - Matane - Matap�dia"
replace district_name = "Hochelaga" if fed11_name == "Hochelaga"
replace district_name = "Honore-Mercier" if fed11_name == "Honore - Mercier"
replace district_name = "Honore-Mercier" if fed11_name == "Honor�-Mercier"
replace district_name = "Hull - Aylmer" if fed11_name == "Hull - Aylmer"
replace district_name = "Hull - Aylmer" if fed11_name == "Hull - Aylmer                                                         E"
replace district_name = "Humber - St. Barbe - Baie Verte" if fed11_name == "Humber - St. Barbe - Baie Verte"
replace district_name = "Huron - Bruce" if fed11_name == "Huron - Bruce"
replace district_name = "Jeanne - Le Ber" if fed11_name == "Jeanne - Le Ber"
replace district_name = "Jeanne - Le Ber" if fed11_name == "Jeanne-Le Ber"
replace district_name = "Joliette" if fed11_name == "Joliette"
replace district_name = "Jonquiere - Alma" if fed11_name == "Jonquiere - Alma"
replace district_name = "Jonquiere - Alma" if fed11_name == "Jonqui�re - Alma"
replace district_name = "Jonquiere - Alma" if fed11_name == "Jonquiere - Alma                                                      E"
replace district_name = "Kamloops - Thompson - Cariboo" if fed11_name == "Kamloops - Thompson - Cariboo"
replace district_name = "Kelowna - Lake Country" if fed11_name == "Kelowna - Lake Country"
replace district_name = "Kenora" if fed11_name == "Kenora"
replace district_name = "Kildonan - St. Paul" if fed11_name == "Kildonan - St. Paul"
replace district_name = "Kings - Hants" if fed11_name == "Kings - Hants"
replace district_name = "Kingston and the Islands / Kingston et les Iles" if fed11_name == "Kingston and the Islands / Kingston et les ile"
replace district_name = "Kingston and the Islands / Kingston et les Iles" if fed11_name == "Kingston and the Islands / Kingston et les �les"
replace district_name = "Kitchener - Conestoga" if fed11_name == "Kitchener - Conestoga"
replace district_name = "Kitchener - Waterloo" if fed11_name == "Kitchener - Waterloo"
replace district_name = "Kitchener Centre / Kitchener-Centre" if fed11_name == "Kitchener Centre / Kitchener - Centre"
replace district_name = "Kitchener Centre / Kitchener-Centre" if fed11_name == "Kitchener Centre / Kitchener-Centre"
replace district_name = "Kootenay - Columbia" if fed11_name == "Kootenay - Columbia"
replace district_name = "La Pointe-de-l'Ile" if fed11_name == "La Pointe - de - lile"
replace district_name = "Labrador" if fed11_name == "Labrador"
replace district_name = "Lac-Saint-Louis" if fed11_name == "Lac - Saint - Louis"
replace district_name = "Lac-Saint-Louis" if fed11_name == "Lac-Saint-Louis"
replace district_name = "Lambton - Kent - Middlesex" if fed11_name == "Lambton - Kent - Middlesex"
replace district_name = "Lanark - Frontenac - Lennox and Addington" if fed11_name == "Lanark - Frontenac - Lennox and Addington"
replace district_name = "Langley" if fed11_name == "Langley"
replace district_name = "LaSalle - Emard" if fed11_name == "LaSalle - Emard"
replace district_name = "LaSalle - Emard" if fed11_name == "LaSalle - �mard"
replace district_name = "Laurentides - Labelle" if fed11_name == "Laurentides - Labelle"
replace district_name = "Laurier - Sainte-Marie" if fed11_name == "Laurier - Sainte - Marie"
replace district_name = "Laurier - Sainte-Marie" if fed11_name == "Laurier - Sainte-Marie"
replace district_name = "Laval" if fed11_name == "Laval"
replace district_name = "Laval - Les Iles" if fed11_name == "Laval - Les Iles"
replace district_name = "Laval - Les Iles" if fed11_name == "Laval - Les �les"
replace district_name = "Leeds - Grenville" if fed11_name == "Leeds - Grenville"
replace district_name = "Lethbridge" if fed11_name == "Lethbridge"
replace district_name = "Levis - Bellechasse" if fed11_name == "Levis - Bellechass"
replace district_name = "London - Fanshawe" if fed11_name == "London - Fanshawe"
replace district_name = "London North Centre / London-Centre-Nord" if fed11_name == "London North Centre / London - Centre - Nord"
replace district_name = "London North Centre / London-Centre-Nord" if fed11_name == "London North Centre / London-Centre-Nord"
replace district_name = "London West / London-Ouest" if fed11_name == "London West / London - Ouest"
replace district_name = "London West / London-Ouest" if fed11_name == "London West / London-Ouest"
replace district_name = "Longueuil - Pierre-Boucher" if fed11_name == "Longueuil - Pierre - Boucher"
replace district_name = "Longueuil - Pierre-Boucher" if fed11_name == "Longueuil - Pierre-Boucher"
replace district_name = "Lotbiniere - Chutes-de-la-Chaudiere" if fed11_name == "Lotbiniere - Chutes - de - la - Chaudi�"
replace district_name = "Lotbiniere - Chutes-de-la-Chaudiere" if fed11_name == "Lotbini�re - Chutes-de-la-Chaudi�re"
replace district_name = "Louis-Hebert" if fed11_name == "Louis - Heber"
replace district_name = "Louis-Saint-Laurent" if fed11_name == "Louis - Saint - Laurent"
replace district_name = "Louis-Saint-Laurent" if fed11_name == "Louis-Saint-Laurent"
replace district_name = "Louis-Hebert" if fed11_name == "Louis-H�bert"
replace district_name = "Levis - Bellechasse" if fed11_name == "L�vis - Bellechasse"
replace district_name = "Macleod" if fed11_name == "Macleod"
replace district_name = "Madawaska - Restigouche" if fed11_name == "Madawaska - Restigouche"
replace district_name = "Malpeque" if fed11_name == "Malpeque"
replace district_name = "Manicouagan" if fed11_name == "Manicouagan"
replace district_name = "Marc-Aurele-Fortin" if fed11_name == "Marc - Aurele - Fortin"
replace district_name = "Marc-Aurele-Fortin" if fed11_name == "Marc-Aur�le-Fortin"
replace district_name = "Markham - Unionville" if fed11_name == "Markham - Unionville"
replace district_name = "Medicine Hat" if fed11_name == "Medicine Hat"
replace district_name = "Megantic - L'Erable" if fed11_name == "Megantic - L'Erable"
replace district_name = "Megantic - L'Erable" if fed11_name == "M�gantic - L'�rable"
replace district_name = "Miramichi" if fed11_name == "Miramichi"
replace district_name = "Mississauga - Brampton South / Mississauga - Brampton-Sud" if fed11_name == "Mississauga - Brampton South / Mississauga - Brampton - Sud"
replace district_name = "Mississauga - Erindale" if fed11_name == "Mississauga - Erindale"
replace district_name = "Mississauga - Streetsville" if fed11_name == "Mississauga - Streetsville"
replace district_name = "Mississauga East - Cooksville / Mississauga-Est - Cooksville" if fed11_name == "Mississauga East - Cooksville / Mississauga - Est - Cooksville"
replace district_name = "Mississauga South / Mississauga-Sud" if fed11_name == "Mississauga South / Mississauga - Sud"
replace district_name = "Mississauga South / Mississauga-Sud" if fed11_name == "Mississauga South / Mississauga-Sud"
replace district_name = "Moncton - Riverview - Dieppe" if fed11_name == "Moncton - Riverview - Dieppe"
replace district_name = "Mont-Royal / Mount Royal" if fed11_name == "Mont - Royal / Mount Royal"
replace district_name = "Montcalm" if fed11_name == "Montcalm"
replace district_name = "Montmagny - L'Islet - Kamouraska - Riviere-du-Loup" if fed11_name == "Montmagny - L'Islet - Kamouraska - Riviere - du - Loup"
replace district_name = "Montmagny - L'Islet - Kamouraska - Riviere-du-Loup" if fed11_name == "Montmagny - L'Islet - Kamouraska - Rivi�re-du-Loup"
replace district_name = "Montmorency - Charlevoix - Haute-Cote-Nord" if fed11_name == "Montmorency - Charlevoix - Haute - Cote - Nord"
replace district_name = "Montmorency - Charlevoix - Haute-Cote-Nord" if fed11_name == "Montmorency - Charlevoix - Haute-C�te-Nord"
replace district_name = "Mont-Royal / Mount Royal" if fed11_name == "Mont-Royal / Mount Royal"
replace district_name = "Nanaimo - Alberni" if fed11_name == "Nanaimo - Alberni"
replace district_name = "Nanaimo - Cowichan" if fed11_name == "Nanaimo - Cowichan"
replace district_name = "Nepean - Carleton" if fed11_name == "Nepean - Carleton"
replace district_name = "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest" if fed11_name == "New Brunswick Southwest / Nouveau - Brunswick - Sud - Ouest"
replace district_name = "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest" if fed11_name == "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest"
replace district_name = "New Westminster - Coquitlam" if fed11_name == "New Westminster - Coquitlam"
replace district_name = "Newmarket - Aurora" if fed11_name == "Newmarket - Aurora"
replace district_name = "Newton - North Delta / Newton - Delta-Nord" if fed11_name == "Newton - North Delta / Newton - Delta - Nord"
replace district_name = "Niagara Falls" if fed11_name == "Niagara Falls"
replace district_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if fed11_name == "Niagara West - Glanbrook / Niagara - Ouest - Glanbrook"
replace district_name = "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook" if fed11_name == "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook"
replace district_name = "Nickel Belt" if fed11_name == "Nickel Belt"
replace district_name = "Nipissing - Timiskaming" if fed11_name == "Nipissing - Timiskaming"
replace district_name = "North Vancouver" if fed11_name == "North Vancouver"
replace district_name = "Northumberland - Quinte West" if fed11_name == "Northumberland - Quinte West"
replace district_name = "Notre-Dame-de-Grace - Lachine" if fed11_name == "Notre - Dame - de - Grace - Lachine"
replace district_name = "Notre-Dame-de-Grace - Lachine" if fed11_name == "Notre-Dame-de-Gr�ce - Lachine"
replace district_name = "Oak Ridges - Markham" if fed11_name == "Oak Ridges - Markham"
replace district_name = "Oakville" if fed11_name == "Oakville"
replace district_name = "Okanagan - Coquihalla" if fed11_name == "Okanagan - Coquihalla"
replace district_name = "Okanagan - Shuswap" if fed11_name == "Okanagan - Shuswap"
replace district_name = "Oshawa" if fed11_name == "Oshawa"
replace district_name = "Ottawa - Orleans" if fed11_name == "Ottawa - Orl�ans"
replace district_name = "Ottawa - Orleans" if fed11_name == "Ottawa - Orleans"
replace district_name = "Ottawa - Vanier" if fed11_name == "Ottawa - Vanier"
replace district_name = "Ottawa Centre / Ottawa-Centre" if fed11_name == "Ottawa Centre / Ottawa - Centre"
replace district_name = "Ottawa Centre / Ottawa-Centre" if fed11_name == "Ottawa Centre / Ottawa-Centre"
replace district_name = "Ottawa South / Ottawa-Sud" if fed11_name == "Ottawa South / Ottawa - Sud"
replace district_name = "Ottawa South / Ottawa-Sud" if fed11_name == "Ottawa South / Ottawa-Sud"
replace district_name = "Ottawa West - Nepean / Ottawa-Ouest - Nepean" if fed11_name == "Ottawa West - Nepean / Ottawa - Ouest - Nepean"
replace district_name = "Ottawa West - Nepean / Ottawa-Ouest - Nepean" if fed11_name == "Ottawa West - Nepean / Ottawa-Ouest - Nepean"
replace district_name = "Outremont" if fed11_name == "Outremont"
replace district_name = "Oxford" if fed11_name == "Oxford"
replace district_name = "Palliser" if fed11_name == "Palliser"
replace district_name = "Papineau" if fed11_name == "Papineau"
replace district_name = "Parkdale - High Park" if fed11_name == "Parkdale - High Park"
replace district_name = "Parry Sound - Muskoka" if fed11_name == "Parry Sound - Muskoka"
replace district_name = "Peace River" if fed11_name == "Peace River"
replace district_name = "Perth - Wellington" if fed11_name == "Perth - Wellington"
replace district_name = "Peterborough" if fed11_name == "Peterborough"
replace district_name = "Pickering - Scarborough East / Pickering - Scarborough-Est" if fed11_name == "Pickering - Scarborough East / Pickering - Scarborough - Est"
replace district_name = "Pickering - Scarborough East / Pickering - Scarborough-Est" if fed11_name == "Pickering - Scarborough East / Pickering - Scarborough-Est"
replace district_name = "Pierrefonds - Dollard" if fed11_name == "Pierrefonds - Dollard"
replace district_name = "Pitt Meadows - Maple Ridge - Mission" if fed11_name == "Pitt Meadows - Maple Ridge - Mission"
replace district_name = "Pontiac" if fed11_name == "Pontiac"
replace district_name = "Port Moody - Westwood - Port Coquitlam" if fed11_name == "Port Moody - Westwood - Port Coquitlam"
replace district_name = "Portage - Lisgar" if fed11_name == "Portage - Lisgar"
replace district_name = "Portneuf - Jacques-Cartier" if fed11_name == "Portneuf - Jacques - Cartier"
replace district_name = "Portneuf - Jacques-Cartier" if fed11_name == "Portneuf - Jacques-Cartier"
replace district_name = "Prince Albert" if fed11_name == "Prince Albert"
replace district_name = "Prince Edward - Hastings" if fed11_name == "Prince Edward - Hastings"
replace district_name = "Prince George - Peace River" if fed11_name == "Prince George - Peace River"
replace district_name = "Provencher" if fed11_name == "Provencher"
replace district_name = "Quebec" if fed11_name == "Qu�bec"
replace district_name = "Quebec" if fed11_name == "Quebe"
replace district_name = "Random - Burin - St. George's" if fed11_name == "Random - Burin - St. George's"
replace district_name = "Red Deer" if fed11_name == "Red Deer"
replace district_name = "Regina - Lumsden - Lake Centre" if fed11_name == "Regina - Lumsden - Lake Centre"
replace district_name = "Regina - Qu'Appelle" if fed11_name == "Regina - Qu'Appelle"
replace district_name = "Renfrew - Nipissing - Pembroke" if fed11_name == "Renfrew - Nipissing - Pembroke"
replace district_name = "Repentigny" if fed11_name == "Repentigny"
replace district_name = "Richmond" if fed11_name == "Richmond"
replace district_name = "Richmond - Arthabaska" if fed11_name == "Richmond - Arthabaska"
replace district_name = "Richmond Hill" if fed11_name == "Richmond Hill"
replace district_name = "Rimouski - Neigette - Temiscouata - Les Basques" if fed11_name == "Rimouski - Neigette - Temiscouata - Les Basque"
replace district_name = "Rimouski - Neigette - Temiscouata - Les Basques" if fed11_name == "Rimouski-Neigette - T�miscouata - Les Basques"
replace district_name = "Riviere-des-Mille-Iles" if fed11_name == "Riviere - des - Mille - Iles"
replace district_name = "Riviere-des-Mille-Iles" if fed11_name == "Rivi�re-des-Mille-�les"
replace district_name = "Riviere-du-Nord" if fed11_name == "Riviere - du - Nord"
replace district_name = "Riviere-du-Nord" if fed11_name == "Rivi�re-du-Nord"
replace district_name = "Roberval - Lac-Saint-Jean" if fed11_name == "Roberval - Lac - Saint - Jean"
replace district_name = "Roberval - Lac-Saint-Jean" if fed11_name == "Roberval - Lac-Saint-Jean"
replace district_name = "Rosemont - La Petite-Patrie" if fed11_name == "Rosemont - La Petite - Patrie"
replace district_name = "Rosemont - La Petite-Patrie" if fed11_name == "Rosemont - La Petite-Patrie"
replace district_name = "Saanich - Gulf Islands" if fed11_name == "Saanich - Gulf Islands"
replace district_name = "Sackville - Eastern Shore" if fed11_name == "Sackville - Eastern Shore"
replace district_name = "Saint-Bruno - Saint-Hubert" if fed11_name == "Saint - Bruno - Saint - Hubert"
replace district_name = "Saint-Bruno - Saint-Hubert" if fed11_name == "Saint - Bruno - Saint - Hubert                                        U"
replace district_name = "Saint-Hyacinthe - Bagot" if fed11_name == "Saint - Hyacinthe - Bagot"
replace district_name = "Saint-Jean" if fed11_name == "Saint - Jean"
replace district_name = "Saint-Lambert" if fed11_name == "Saint - Lambert"
replace district_name = "Saint-Laurent - Cartierville" if fed11_name == "Saint - Laurent - Cartierville"
replace district_name = "Saint-Leonard - Saint-Michel" if fed11_name == "Saint - Leonard - Saint - Michel"
replace district_name = "Saint-Maurice - Champlain" if fed11_name == "Saint - Maurice - Champlain"
replace district_name = "Saint Boniface / Saint-Boniface" if fed11_name == "Saint Boniface / Saint - Boniface"
replace district_name = "Saint Boniface / Saint-Boniface" if fed11_name == "Saint Boniface / Saint-Boniface"
replace district_name = "Saint John" if fed11_name == "Saint John"
replace district_name = "Saint-Bruno - Saint-Hubert" if fed11_name == "Saint-Bruno - Saint-Hubert"
replace district_name = "Saint-Hyacinthe - Bagot" if fed11_name == "Saint-Hyacinthe - Bagot"
replace district_name = "Saint-Jean" if fed11_name == "Saint-Jean"
replace district_name = "Saint-Lambert" if fed11_name == "Saint-Lambert"
replace district_name = "Saint-Laurent - Cartierville" if fed11_name == "Saint-Laurent - Cartierville"
replace district_name = "Saint-Maurice - Champlain" if fed11_name == "Saint-Maurice - Champlain"
replace district_name = "Sarnia - Lambton" if fed11_name == "Sarnia - Lambton"
replace district_name = "Saskatoon - Humboldt" if fed11_name == "Saskatoon - Humboldt"
replace district_name = "Saskatoon - Rosetown - Biggar" if fed11_name == "Saskatoon - Rosetown - Biggar"
replace district_name = "Saskatoon - Wanuskewin" if fed11_name == "Saskatoon - Wanuskewin"
replace district_name = "Sault Ste. Marie" if fed11_name == "Sault Ste. Marie"
replace district_name = "Scarborough - Agincourt" if fed11_name == "Scarborough - Agincourt"
replace district_name = "Scarborough - Guildwood" if fed11_name == "Scarborough - Guildwood"
replace district_name = "Scarborough - Rouge River" if fed11_name == "Scarborough - Rouge River"
replace district_name = "Scarborough Centre / Scarborough-Centre" if fed11_name == "Scarborough Centre / Scarborough - Centre"
replace district_name = "Scarborough Centre / Scarborough-Centre" if fed11_name == "Scarborough Centre / Scarborough-Centre"
replace district_name = "Scarborough Southwest / Scarborough-Sud-Ouest" if fed11_name == "Scarborough Southwest / Scarborough - Sud - Ouest"
replace district_name = "Scarborough Southwest / Scarborough-Sud-Ouest" if fed11_name == "Scarborough Southwest / Scarborough-Sud-Ouest"
replace district_name = "Selkirk - Interlake" if fed11_name == "Selkirk - Interlake"
replace district_name = "Shefford" if fed11_name == "Shefford"
replace district_name = "Sherbrooke" if fed11_name == "Sherbrooke"
replace district_name = "Simcoe - Grey" if fed11_name == "Simcoe - Grey"
replace district_name = "Simcoe North / Simcoe-Nord" if fed11_name == "Simcoe North / Simcoe - Nord"
replace district_name = "Simcoe North / Simcoe-Nord" if fed11_name == "Simcoe North / Simcoe-Nord"
replace district_name = "Skeena - Bulkley Valley" if fed11_name == "Skeena - Bulkley Valley"
replace district_name = "Souris - Moose Mountain" if fed11_name == "Souris - Moose Mountain"
replace district_name = "South Shore - St. Margaret's" if fed11_name == "South Shore - St. Margaret's"
replace district_name = "South Surrey - White Rock - Cloverdale / Surrey-Sud - White Rock - Cloverdale" if fed11_name == "South Surrey - White Rock - Cloverdale / Surrey - Sud - White"
replace district_name = "South Surrey - White Rock - Cloverdale / Surrey-Sud - White Rock - Cloverdale" if fed11_name == "South Surrey - White Rock - Cloverdale / Surrey-Sud - White Rock -"
replace district_name = "St. Catharines" if fed11_name == "St. Catharines"
replace district_name = "St. John's East / St. John's-Est" if fed11_name == "St. John's East / St. John's - Est"
replace district_name = "St. John's East / St. John's-Est" if fed11_name == "St. John's East / St. John's-Est"
replace district_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if fed11_name == "St. John's South - Mount Pearl / St. John's - Sud - Mount Pearl"
replace district_name = "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl" if fed11_name == "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl"
replace district_name = "St. Paul's" if fed11_name == "St. Paul's"
replace district_name = "Stormont - Dundas - South Glengarry" if fed11_name == "Stormont - Dundas - South Glengarry"
replace district_name = "Sudbury" if fed11_name == "Sudbury"
replace district_name = "Surrey North / Surrey-Nord" if fed11_name == "Surrey North / Surrey - Nord"
replace district_name = "Sydney - Victoria" if fed11_name == "Sydney - Victoria"
replace district_name = "Terrebonne - Blainville" if fed11_name == "Terrebonne - Blainville"
replace district_name = "Thornhill" if fed11_name == "Thornhill"
replace district_name = "Thunder Bay - Rainy River" if fed11_name == "Thunder Bay - Rainy River"
replace district_name = "Thunder Bay - Superior North / Thunder Bay - Superior-Nord" if fed11_name == "Thunder Bay - Superior North / Thunder Bay - Superior - Nord"
replace district_name = "Thunder Bay - Superior North / Thunder Bay - Superior-Nord" if fed11_name == "Thunder Bay - Superior North / Thunder Bay - Superior-Nord"
replace district_name = "Timmins - James Bay / Timmins - Baie James" if fed11_name == "Timmins - James Bay / Timmins - Baie James"
replace district_name = "Tobique - Mactaquac" if fed11_name == "Tobique - Mactaquac"
replace district_name = "Toronto - Danforth" if fed11_name == "Toronto - Danforth"
replace district_name = "Toronto Centre / Toronto-Centre" if fed11_name == "Toronto Centre / Toronto - Centre"
replace district_name = "Toronto Centre / Toronto-Centre" if fed11_name == "Toronto Centre / Toronto-Centre"
replace district_name = "Trinity - Spadina" if fed11_name == "Trinity - Spadina"
replace district_name = "Trois-Rivieres" if fed11_name == "Trois - Rivieres"
replace district_name = "Trois-Rivieres" if fed11_name == "Trois-Rivi�res"
replace district_name = "Vancouver Centre / Vancouver-Centre" if fed11_name == "Vancouver Centre / Vancouver - Centre"
replace district_name = "Vancouver East / Vancouver-Est" if fed11_name == "Vancouver East / Vancouver - Est"
replace district_name = "Vancouver East / Vancouver-Est" if fed11_name == "Vancouver East / Vancouver-Est"
replace district_name = "Vancouver Island North / Ile de Vancouver-Nord" if fed11_name == "Vancouver Island North / ile de Vancouver - Nord"
replace district_name = "Vancouver Island North / Ile de Vancouver-Nord" if fed11_name == "Vancouver Island North / �le de Vancouver-Nord"
replace district_name = "Vancouver Kingsway" if fed11_name == "Vancouver Kingsway"
replace district_name = "Vancouver Quadra" if fed11_name == "Vancouver Quadra"
replace district_name = "Vancouver South / Vancouver-Sud" if fed11_name == "Vancouver South / Vancouver - Sud"
replace district_name = "Vaudreuil - Soulanges" if fed11_name == "Vaudreuil - Soulanges"
replace district_name = "Vaudreuil - Soulanges" if fed11_name == "Vaudreuil-Soulanges"
replace district_name = "Vaughan" if fed11_name == "Vaughan"
replace district_name = "Vegreville - Wainwright" if fed11_name == "Vegreville - Wainwright"
replace district_name = "Vercheres - Les Patriotes" if fed11_name == "Vercheres - Les Patriotes"
replace district_name = "Vercheres - Les Patriotes" if fed11_name == "Verch�res - Les Patriotes"
replace district_name = "Victoria" if fed11_name == "Victoria"
replace district_name = "Wascana" if fed11_name == "Wascana"
replace district_name = "Welland" if fed11_name == "Welland"
replace district_name = "Wellington - Halton Hills" if fed11_name == "Wellington - Halton Hills"
replace district_name = "West Nova / Nova-Ouest" if fed11_name == "West Nova / Nova - Ouest"
replace district_name = "West Nova / Nova-Ouest" if fed11_name == "West Nova / Nova-Ouest"
replace district_name = "West Vancouver - Sunshine Coast - Sea to Sky Country" if fed11_name == "West Vancouver - Sunshine Coast - Sea to Sky Country"
replace district_name = "Westlock - St. Paul" if fed11_name == "Westlock - St. Paul"
replace district_name = "Westmount - Ville-Marie" if fed11_name == "Westmount - Ville - Marie"
replace district_name = "Westmount - Ville-Marie" if fed11_name == "Westmount - Ville-Marie"
replace district_name = "Wetaskiwin" if fed11_name == "Wetaskiwin"
replace district_name = "Whitby - Oshawa" if fed11_name == "Whitby - Oshawa"
replace district_name = "Wild Rose" if fed11_name == "Wild Rose"
replace district_name = "Wild Rose" if fed11_name == "Wild Rose                                                              RD"
replace district_name = "Willowdale" if fed11_name == "Willowdale"
replace district_name = "Windsor - Tecumseh" if fed11_name == "Windsor - Tecumseh"
replace district_name = "Windsor West / Windsor-Ouest" if fed11_name == "Windsor West / Windsor - Ouest"
replace district_name = "Windsor West / Windsor-Ouest" if fed11_name == "Windsor West / Windsor-Ouest"
replace district_name = "Winnipeg Centre / Winnipeg-Centre" if fed11_name == "Winnipeg Centre / Winnipeg - Centre"
replace district_name = "Winnipeg Centre / Winnipeg-Centre" if fed11_name == "Winnipeg Centre / Winnipeg-Centre"
replace district_name = "Winnipeg North / Winnipeg-Nord" if fed11_name == "Winnipeg North / Winnipeg - Nord"
replace district_name = "Winnipeg South / Winnipeg-Sud" if fed11_name == "Winnipeg South / Winnipeg - Sud"
replace district_name = "Winnipeg South / Winnipeg-Sud" if fed11_name == "Winnipeg South / Winnipeg-Sud"
replace district_name = "Winnipeg South Centre / Winnipeg-Centre-Sud" if fed11_name == "Winnipeg South Centre / Winnipeg - Centre - Sud"
replace district_name = "Winnipeg South Centre / Winnipeg-Centre-Sud" if fed11_name == "Winnipeg South Centre / Winnipeg-Centre-Sud"
replace district_name = "Yellowhead" if fed11_name == "Yellowhead"
replace district_name = "York - Simcoe" if fed11_name == "York - Simcoe"
replace district_name = "York Centre / York-Centre" if fed11_name == "York Centre / York - Centre"
replace district_name = "York Centre / York-Centre" if fed11_name == "York Centre / York-Centre"
replace district_name = "York South - Weston / York-Sud - Weston" if fed11_name == "York South - Weston / York - Sud - Weston"
replace district_name = "York West / York-Ouest" if fed11_name == "York West / York - Ouest"
replace district_name = "Yorkton - Melville" if fed11_name == "Yorkton - Melville"

gen fed11 = .

replace fed11 = 59001 if district_name == "Abbotsford"
replace fed11 = 24046 if district_name == "Abitibi - Baie-James - Nunavik - Eeyou"
replace fed11 = 24001 if district_name == "Abitibi-Temiscamingue"
replace fed11 = 13001 if district_name == "Acadie - Bathurst"
replace fed11 = 24002 if district_name == "Ahuntsic"
replace fed11 = 35001 if district_name == "Ajax - Pickering"
replace fed11 = 24003 if district_name == "Alfred-Pellan"
replace fed11 = 35002 if district_name == "Algoma - Manitoulin - Kapuskasing"
replace fed11 = 35003 if district_name == "Ancaster - Dundas - Flamborough - Westdale"
replace fed11 = 24004 if district_name == "Argenteuil - Papineau - Mirabel"
replace fed11 = 10001 if district_name == "Avalon"
replace fed11 = 35004 if district_name == "Barrie"
replace fed11 = 24054 if district_name == "Bas-Richelieu - Nicolet - Becancour"
replace fed11 = 47001 if district_name == "Battlefords - Lloydminster"
replace fed11 = 35005 if district_name == "Beaches - East York"
replace fed11 = 24005 if district_name == "Beauce"
replace fed11 = 24006 if district_name == "Beauharnois - Salaberry"
replace fed11 = 24007 if district_name == "Beauport - Limoilou"
replace fed11 = 13002 if district_name == "Beausejour"
replace fed11 = 24008 if district_name == "Berthier - Maskinonge"
replace fed11 = 47002 if district_name == "Blackstrap"
replace fed11 = 10002 if district_name == "Bonavista - Gander - Grand Falls - Windsor"
replace fed11 = 24009 if district_name == "Bourassa"
replace fed11 = 35006 if district_name == "Bramalea - Gore - Malton"
replace fed11 = 35007 if district_name == "Brampton - Springdale"
replace fed11 = 35008 if district_name == "Brampton West / Brampton-Ouest"
replace fed11 = 46001 if district_name == "Brandon - Souris"
replace fed11 = 35009 if district_name == "Brant"
replace fed11 = 59026 if district_name == "British Columbia Southern Interior / Colombie-Britannique-Southern"
replace fed11 = 24010 if district_name == "Brome-Missisquoi"
replace fed11 = 24011 if district_name == "Brossard - La Prairie"
replace fed11 = 35026 if district_name == "Bruce - Grey - Owen Sound"
replace fed11 = 35010 if district_name == "Burlington"
replace fed11 = 59002 if district_name == "Burnaby - Douglas"
replace fed11 = 59003 if district_name == "Burnaby - New Westminster"
replace fed11 = 48005 if district_name == "Calgary - Nose Hill"
replace fed11 = 48006 if district_name == "Calgary Centre / Calgary-Centre"
replace fed11 = 48003 if district_name == "Calgary Centre-North / Calgary-Centre-Nord"
replace fed11 = 48002 if district_name == "Calgary East / Calgary-Est"
replace fed11 = 48004 if district_name == "Calgary Northeast / Calgary-Nord-Est"
replace fed11 = 48007 if district_name == "Calgary Southeast / Calgary-Sud-Est"
replace fed11 = 48008 if district_name == "Calgary Southwest / Calgary-Sud-Ouest"
replace fed11 = 48009 if district_name == "Calgary West / Calgary-Ouest"
replace fed11 = 35011 if district_name == "Cambridge"
replace fed11 = 12001 if district_name == "Cape Breton - Canso"
replace fed11 = 11001 if district_name == "Cardigan"
replace fed11 = 59004 if district_name == "Cariboo - Prince George"
replace fed11 = 35012 if district_name == "Carleton - Mississippi Mills"
replace fed11 = 12002 if district_name == "Central Nova / Nova-Centre"
replace fed11 = 24012 if district_name == "Chambly - Borduas"
replace fed11 = 24013 if district_name == "Charlesbourg - Haute-Saint-Charles"
replace fed11 = 46002 if district_name == "Charleswood - St. James - Assiniboia"
replace fed11 = 11002 if district_name == "Charlottetown"
replace fed11 = 24015 if district_name == "Chateauguay - Saint-Constant"
replace fed11 = 35013 if district_name == "Chatham - Kent - Essex"
replace fed11 = 24016 if district_name == "Chicoutimi - Le Fjord"
replace fed11 = 59005 if district_name == "Chilliwack - Fraser Canyon"
replace fed11 = 46003 if district_name == "Churchill"
replace fed11 = 24017 if district_name == "Compton - Stanstead"
replace fed11 = 48010 if district_name == "Crowfoot"
replace fed11 = 12007 if district_name == "Cumberland - Colchester - Musquodoboit Valley"
replace fed11 = 47004 if district_name == "Cypress Hills - Grasslands"
replace fed11 = 12003 if district_name == "Dartmouth - Cole Harbour"
replace fed11 = 46004 if district_name == "Dauphin - Swan River - Marquette"
replace fed11 = 35015 if district_name == "Davenport"
replace fed11 = 59006 if district_name == "Delta - Richmond East / Delta - Richmond-Est"
replace fed11 = 47003 if district_name == "Desnethe - Missinippi - Churchill River / Desnethe - Missinippi - Churchill River"
replace fed11 = 35016 if district_name == "Don Valley East / Don Valley-Est"
replace fed11 = 35017 if district_name == "Don Valley West / Don Valley-Ouest"
replace fed11 = 24018 if district_name == "Drummond"
replace fed11 = 35018 if district_name == "Dufferin - Caledon"
replace fed11 = 35014 if district_name == "Durham"
replace fed11 = 48014 if district_name == "Edmonton - Leduc"
replace fed11 = 48011 if district_name == "Edmonton - Mill Woods - Beaumont"
replace fed11 = 48016 if district_name == "Edmonton - Sherwood Park"
replace fed11 = 48017 if district_name == "Edmonton - Spruce Grove"
replace fed11 = 48015 if district_name == "Edmonton - St. Albert"
replace fed11 = 48018 if district_name == "Edmonton - Strathcona"
replace fed11 = 48012 if district_name == "Edmonton Centre / Edmonton-Centre"
replace fed11 = 48013 if district_name == "Edmonton East / Edmonton-Est"
replace fed11 = 35019 if district_name == "Eglinton - Lawrence"
replace fed11 = 11003 if district_name == "Egmont"
replace fed11 = 35020 if district_name == "Elgin - Middlesex - London"
replace fed11 = 46005 if district_name == "Elmwood - Transcona"
replace fed11 = 59008 if district_name == "Esquimalt - Juan de Fuca"
replace fed11 = 35021 if district_name == "Essex"
replace fed11 = 35023 if district_name == "Etobicoke - Lakeshore"
replace fed11 = 35022 if district_name == "Etobicoke Centre / Etobicoke-Centre"
replace fed11 = 35024 if district_name == "Etobicoke North / Etobicoke-Nord"
replace fed11 = 59009 if district_name == "Fleetwood - Port Kells"
replace fed11 = 48001 if district_name == "Fort McMurray - Athabasca"
replace fed11 = 13003 if district_name == "Fredericton"
replace fed11 = 13004 if district_name == "Fundy Royal"
replace fed11 = 24019 if district_name == "Gaspesie - Iles-de-la-Madeleine"
replace fed11 = 24020 if district_name == "Gatineau"
replace fed11 = 35025 if district_name == "Glengarry - Prescott - Russell"
replace fed11 = 35027 if district_name == "Guelph"
replace fed11 = 35028 if district_name == "Haldimand - Norfolk"
replace fed11 = 35029 if district_name == "Haliburton - Kawartha Lakes - Brock"
replace fed11 = 12004 if district_name == "Halifax"
replace fed11 = 12005 if district_name == "Halifax West / Halifax-Ouest"
replace fed11 = 35030 if district_name == "Halton"
replace fed11 = 35031 if district_name == "Hamilton Centre / Hamilton-Centre"
replace fed11 = 35032 if district_name == "Hamilton East - Stoney Creek / Hamilton-Est - Stoney Creek"
replace fed11 = 35033 if district_name == "Hamilton Mountain"
replace fed11 = 24041 if district_name == "Haute-Gaspesie - La Mitis - Matane - Matapedia"
replace fed11 = 24021 if district_name == "Hochelaga"
replace fed11 = 24022 if district_name == "Honore-Mercier"
replace fed11 = 24023 if district_name == "Hull - Aylmer"
replace fed11 = 10003 if district_name == "Humber - St. Barbe - Baie Verte"
replace fed11 = 35034 if district_name == "Huron - Bruce"
replace fed11 = 24024 if district_name == "Jeanne - Le Ber"
replace fed11 = 24025 if district_name == "Joliette"
replace fed11 = 24026 if district_name == "Jonquiere - Alma"
replace fed11 = 59010 if district_name == "Kamloops - Thompson - Cariboo"
replace fed11 = 59011 if district_name == "Kelowna - Lake Country"
replace fed11 = 35035 if district_name == "Kenora"
replace fed11 = 46006 if district_name == "Kildonan - St. Paul"
replace fed11 = 12006 if district_name == "Kings - Hants"
replace fed11 = 35036 if district_name == "Kingston and the Islands / Kingston et les Iles"
replace fed11 = 35038 if district_name == "Kitchener - Conestoga"
replace fed11 = 35039 if district_name == "Kitchener - Waterloo"
replace fed11 = 35037 if district_name == "Kitchener Centre / Kitchener-Centre"
replace fed11 = 59012 if district_name == "Kootenay - Columbia"
replace fed11 = 24028 if district_name == "La Pointe-de-l'Ile"
replace fed11 = 10004 if district_name == "Labrador"
replace fed11 = 24027 if district_name == "Lac-Saint-Louis"
replace fed11 = 35046 if district_name == "Lambton - Kent - Middlesex"
replace fed11 = 35040 if district_name == "Lanark - Frontenac - Lennox and Addington"
replace fed11 = 59013 if district_name == "Langley"
replace fed11 = 24029 if district_name == "LaSalle - Emard"
replace fed11 = 24030 if district_name == "Laurentides - Labelle"
replace fed11 = 24031 if district_name == "Laurier - Sainte-Marie"
replace fed11 = 24032 if district_name == "Laval"
replace fed11 = 24033 if district_name == "Laval - Les Iles"
replace fed11 = 35041 if district_name == "Leeds - Grenville"
replace fed11 = 48019 if district_name == "Lethbridge"
replace fed11 = 24034 if district_name == "Levis - Bellechasse"
replace fed11 = 35042 if district_name == "London - Fanshawe"
replace fed11 = 35043 if district_name == "London North Centre / London-Centre-Nord"
replace fed11 = 35044 if district_name == "London West / London-Ouest"
replace fed11 = 24035 if district_name == "Longueuil - Pierre-Boucher"
replace fed11 = 24036 if district_name == "Lotbiniere - Chutes-de-la-Chaudiere"
replace fed11 = 24037 if district_name == "Louis-Hebert"
replace fed11 = 24038 if district_name == "Louis-Saint-Laurent"
replace fed11 = 48020 if district_name == "Macleod"
replace fed11 = 13005 if district_name == "Madawaska - Restigouche"
replace fed11 = 11004 if district_name == "Malpeque"
replace fed11 = 24039 if district_name == "Manicouagan"
replace fed11 = 24040 if district_name == "Marc-Aurele-Fortin"
replace fed11 = 35045 if district_name == "Markham - Unionville"
replace fed11 = 48021 if district_name == "Medicine Hat"
replace fed11 = 24042 if district_name == "Megantic - L'Erable"
replace fed11 = 13006 if district_name == "Miramichi"
replace fed11 = 35047 if district_name == "Mississauga - Brampton South / Mississauga - Brampton-Sud"
replace fed11 = 35049 if district_name == "Mississauga - Erindale"
replace fed11 = 35051 if district_name == "Mississauga - Streetsville"
replace fed11 = 35048 if district_name == "Mississauga East - Cooksville / Mississauga-Est - Cooksville"
replace fed11 = 35050 if district_name == "Mississauga South / Mississauga-Sud"
replace fed11 = 13007 if district_name == "Moncton - Riverview - Dieppe"
replace fed11 = 24043 if district_name == "Montcalm"
replace fed11 = 24058 if district_name == "Montmagny - L'Islet - Kamouraska - Riviere-du-Loup"
replace fed11 = 24014 if district_name == "Montmorency - Charlevoix - Haute-Cote-Nord"
replace fed11 = 24044 if district_name == "Mont-Royal / Mount Royal"
replace fed11 = 59014 if district_name == "Nanaimo - Alberni"
replace fed11 = 59015 if district_name == "Nanaimo - Cowichan"
replace fed11 = 35052 if district_name == "Nepean - Carleton"
replace fed11 = 13008 if district_name == "New Brunswick Southwest / Nouveau-Brunswick-Sud-Ouest"
replace fed11 = 59017 if district_name == "New Westminster - Coquitlam"
replace fed11 = 35053 if district_name == "Newmarket - Aurora"
replace fed11 = 59016 if district_name == "Newton - North Delta / Newton - Delta-Nord"
replace fed11 = 35054 if district_name == "Niagara Falls"
replace fed11 = 35055 if district_name == "Niagara West - Glanbrook / Niagara-Ouest - Glanbrook"
replace fed11 = 35056 if district_name == "Nickel Belt"
replace fed11 = 35057 if district_name == "Nipissing - Timiskaming"
replace fed11 = 59019 if district_name == "North Vancouver"
replace fed11 = 35058 if district_name == "Northumberland - Quinte West"
replace fed11 = 24045 if district_name == "Notre-Dame-de-Grace - Lachine"
replace fed11 = 35059 if district_name == "Oak Ridges - Markham"
replace fed11 = 35060 if district_name == "Oakville"
replace fed11 = 59020 if district_name == "Okanagan - Coquihalla"
replace fed11 = 59018 if district_name == "Okanagan - Shuswap"
replace fed11 = 35061 if district_name == "Oshawa"
replace fed11 = 35063 if district_name == "Ottawa - Orleans"
replace fed11 = 35065 if district_name == "Ottawa - Vanier"
replace fed11 = 35062 if district_name == "Ottawa Centre / Ottawa-Centre"
replace fed11 = 35064 if district_name == "Ottawa South / Ottawa-Sud"
replace fed11 = 35066 if district_name == "Ottawa West - Nepean / Ottawa-Ouest - Nepean"
replace fed11 = 24047 if district_name == "Outremont"
replace fed11 = 35067 if district_name == "Oxford"
replace fed11 = 47005 if district_name == "Palliser"
replace fed11 = 24048 if district_name == "Papineau"
replace fed11 = 35068 if district_name == "Parkdale - High Park"
replace fed11 = 35069 if district_name == "Parry Sound - Muskoka"
replace fed11 = 48022 if district_name == "Peace River"
replace fed11 = 35070 if district_name == "Perth - Wellington"
replace fed11 = 35071 if district_name == "Peterborough"
replace fed11 = 35072 if district_name == "Pickering - Scarborough East / Pickering - Scarborough-Est"
replace fed11 = 24049 if district_name == "Pierrefonds - Dollard"
replace fed11 = 59007 if district_name == "Pitt Meadows - Maple Ridge - Mission"
replace fed11 = 24050 if district_name == "Pontiac"
replace fed11 = 59021 if district_name == "Port Moody - Westwood - Port Coquitlam"
replace fed11 = 46007 if district_name == "Portage - Lisgar"
replace fed11 = 24051 if district_name == "Portneuf - Jacques-Cartier"
replace fed11 = 47006 if district_name == "Prince Albert"
replace fed11 = 35073 if district_name == "Prince Edward - Hastings"
replace fed11 = 59022 if district_name == "Prince George - Peace River"
replace fed11 = 46008 if district_name == "Provencher"
replace fed11 = 24052 if district_name == "Quebec"
replace fed11 = 10005 if district_name == "Random - Burin - St. George's"
replace fed11 = 48023 if district_name == "Red Deer"
replace fed11 = 47007 if district_name == "Regina - Lumsden - Lake Centre"
replace fed11 = 47008 if district_name == "Regina - Qu'Appelle"
replace fed11 = 35074 if district_name == "Renfrew - Nipissing - Pembroke"
replace fed11 = 24053 if district_name == "Repentigny"
replace fed11 = 59023 if district_name == "Richmond"
replace fed11 = 24055 if district_name == "Richmond - Arthabaska"
replace fed11 = 35075 if district_name == "Richmond Hill"
replace fed11 = 24056 if district_name == "Rimouski - Neigette - Temiscouata - Les Basques"
replace fed11 = 24057 if district_name == "Riviere-des-Mille-Iles"
replace fed11 = 24059 if district_name == "Riviere-du-Nord"
replace fed11 = 24060 if district_name == "Roberval - Lac-Saint-Jean"
replace fed11 = 24061 if district_name == "Rosemont - La Petite-Patrie"
replace fed11 = 59024 if district_name == "Saanich - Gulf Islands"
replace fed11 = 12008 if district_name == "Sackville - Eastern Shore"
replace fed11 = 46009 if district_name == "Saint Boniface / Saint-Boniface"
replace fed11 = 13009 if district_name == "Saint John"
replace fed11 = 24062 if district_name == "Saint-Bruno - Saint-Hubert"
replace fed11 = 24063 if district_name == "Saint-Hyacinthe - Bagot"
replace fed11 = 24064 if district_name == "Saint-Jean"
replace fed11 = 24065 if district_name == "Saint-Lambert"
replace fed11 = 24066 if district_name == "Saint-Laurent - Cartierville"
replace fed11 = 24067 if district_name == "Saint-Leonard - Saint-Michel"
replace fed11 = 24068 if district_name == "Saint-Maurice - Champlain"
replace fed11 = 35078 if district_name == "Sarnia - Lambton"
replace fed11 = 47009 if district_name == "Saskatoon - Humboldt"
replace fed11 = 47010 if district_name == "Saskatoon - Rosetown - Biggar"
replace fed11 = 47011 if district_name == "Saskatoon - Wanuskewin"
replace fed11 = 35079 if district_name == "Sault Ste. Marie"
replace fed11 = 35080 if district_name == "Scarborough - Agincourt"
replace fed11 = 35082 if district_name == "Scarborough - Guildwood"
replace fed11 = 35083 if district_name == "Scarborough - Rouge River"
replace fed11 = 35081 if district_name == "Scarborough Centre / Scarborough-Centre"
replace fed11 = 35084 if district_name == "Scarborough Southwest / Scarborough-Sud-Ouest"
replace fed11 = 46010 if district_name == "Selkirk - Interlake"
replace fed11 = 24069 if district_name == "Shefford"
replace fed11 = 24070 if district_name == "Sherbrooke"
replace fed11 = 35085 if district_name == "Simcoe - Grey"
replace fed11 = 35086 if district_name == "Simcoe North / Simcoe-Nord"
replace fed11 = 59025 if district_name == "Skeena - Bulkley Valley"
replace fed11 = 47012 if district_name == "Souris - Moose Mountain"
replace fed11 = 12009 if district_name == "South Shore - St. Margaret's"
replace fed11 = 59027 if district_name == "South Surrey - White Rock - Cloverdale / Surrey-Sud - White Rock - Cloverdale"
replace fed11 = 35076 if district_name == "St. Catharines"
replace fed11 = 10006 if district_name == "St. John's East / St. John's-Est"
replace fed11 = 10007 if district_name == "St. John's South - Mount Pearl / St. John's-Sud - Mount Pearl"
replace fed11 = 35077 if district_name == "St. Paul's"
replace fed11 = 35087 if district_name == "Stormont - Dundas - South Glengarry"
replace fed11 = 35088 if district_name == "Sudbury"
replace fed11 = 59028 if district_name == "Surrey North / Surrey-Nord"
replace fed11 = 12010 if district_name == "Sydney - Victoria"
replace fed11 = 24071 if district_name == "Terrebonne - Blainville"
replace fed11 = 35089 if district_name == "Thornhill"
replace fed11 = 35090 if district_name == "Thunder Bay - Rainy River"
replace fed11 = 35091 if district_name == "Thunder Bay - Superior North / Thunder Bay - Superior-Nord"
replace fed11 = 35092 if district_name == "Timmins - James Bay / Timmins - Baie James"
replace fed11 = 13010 if district_name == "Tobique - Mactaquac"
replace fed11 = 35094 if district_name == "Toronto - Danforth"
replace fed11 = 35093 if district_name == "Toronto Centre / Toronto-Centre"
replace fed11 = 35095 if district_name == "Trinity - Spadina"
replace fed11 = 24072 if district_name == "Trois-Rivieres"
replace fed11 = 59029 if district_name == "Vancouver Centre / Vancouver-Centre"
replace fed11 = 59030 if district_name == "Vancouver East / Vancouver-Est"
replace fed11 = 59031 if district_name == "Vancouver Island North / Ile de Vancouver-Nord"
replace fed11 = 59032 if district_name == "Vancouver Kingsway"
replace fed11 = 59033 if district_name == "Vancouver Quadra"
replace fed11 = 59034 if district_name == "Vancouver South / Vancouver-Sud"
replace fed11 = 24073 if district_name == "Vaudreuil - Soulanges"
replace fed11 = 35096 if district_name == "Vaughan"
replace fed11 = 48024 if district_name == "Vegreville - Wainwright"
replace fed11 = 24074 if district_name == "Vercheres - Les Patriotes"
replace fed11 = 59035 if district_name == "Victoria"
replace fed11 = 47013 if district_name == "Wascana"
replace fed11 = 35097 if district_name == "Welland"
replace fed11 = 35098 if district_name == "Wellington - Halton Hills"
replace fed11 = 12011 if district_name == "West Nova / Nova-Ouest"
replace fed11 = 59036 if district_name == "West Vancouver - Sunshine Coast - Sea to Sky Country"
replace fed11 = 48025 if district_name == "Westlock - St. Paul"
replace fed11 = 24075 if district_name == "Westmount - Ville-Marie"
replace fed11 = 48026 if district_name == "Wetaskiwin"
replace fed11 = 35099 if district_name == "Whitby - Oshawa"
replace fed11 = 48027 if district_name == "Wild Rose"
replace fed11 = 35100 if district_name == "Willowdale"
replace fed11 = 35101 if district_name == "Windsor - Tecumseh"
replace fed11 = 35102 if district_name == "Windsor West / Windsor-Ouest"
replace fed11 = 46011 if district_name == "Winnipeg Centre / Winnipeg-Centre"
replace fed11 = 46012 if district_name == "Winnipeg North / Winnipeg-Nord"
replace fed11 = 46013 if district_name == "Winnipeg South / Winnipeg-Sud"
replace fed11 = 46014 if district_name == "Winnipeg South Centre / Winnipeg-Centre-Sud"
replace fed11 = 48028 if district_name == "Yellowhead"
replace fed11 = 35104 if district_name == "York - Simcoe"
replace fed11 = 35103 if district_name == "York Centre / York-Centre"
replace fed11 = 35105 if district_name == "York South - Weston / York-Sud - Weston"
replace fed11 = 35106 if district_name == "York West / York-Ouest"
replace fed11 = 47014 if district_name == "Yorkton - Melville"


***********************
** DISTRICT OUTCOMES **
***********************

* Note: 1 = Liberal, 2 = Conservative, 3 = NDP, 4 = BQ
							
gen district_outcome = .

replace district_outcome = 1 if fed11 == 10001
replace district_outcome = 1 if fed11 == 10002
replace district_outcome = 1 if fed11 == 10003
replace district_outcome = 2 if fed11 == 10004
replace district_outcome = 1 if fed11 == 10005
replace district_outcome = 3 if fed11 == 10006
replace district_outcome = 3 if fed11 == 10007
replace district_outcome = 1 if fed11 == 11001
replace district_outcome = 1 if fed11 == 11002
replace district_outcome = 2 if fed11 == 11003
replace district_outcome = 1 if fed11 == 11004
replace district_outcome = 1 if fed11 == 12001
replace district_outcome = 2 if fed11 == 12002
replace district_outcome = 2 if fed11 == 12007
replace district_outcome = 3 if fed11 == 12003
replace district_outcome = 3 if fed11 == 12004
replace district_outcome = 1 if fed11 == 12005
replace district_outcome = 1 if fed11 == 12006
replace district_outcome = 3 if fed11 == 12008
replace district_outcome = 2 if fed11 == 12009
replace district_outcome = 1 if fed11 == 12010
replace district_outcome = 2 if fed11 == 12011
replace district_outcome = 3 if fed11 == 13001
replace district_outcome = 1 if fed11 == 13002
replace district_outcome = 2 if fed11 == 13003
replace district_outcome = 2 if fed11 == 13004
replace district_outcome = 2 if fed11 == 13005
replace district_outcome = 2 if fed11 == 13006
replace district_outcome = 2 if fed11 == 13007
replace district_outcome = 2 if fed11 == 13008
replace district_outcome = 2 if fed11 == 13009
replace district_outcome = 2 if fed11 == 13010
replace district_outcome = 3 if fed11 == 24046
replace district_outcome = 3 if fed11 == 24001
replace district_outcome = 4 if fed11 == 24002
replace district_outcome = 3 if fed11 == 24003
replace district_outcome = 3 if fed11 == 24004
replace district_outcome = 4 if fed11 == 24054
replace district_outcome = 2 if fed11 == 24005
replace district_outcome = 3 if fed11 == 24006
replace district_outcome = 3 if fed11 == 24007
replace district_outcome = 3 if fed11 == 24008
replace district_outcome = 1 if fed11 == 24009
replace district_outcome = 3 if fed11 == 24010
replace district_outcome = 3 if fed11 == 24011
replace district_outcome = 3 if fed11 == 24012
replace district_outcome = 3 if fed11 == 24013
replace district_outcome = 3 if fed11 == 24015
replace district_outcome = 3 if fed11 == 24016
replace district_outcome = 3 if fed11 == 24017
replace district_outcome = 3 if fed11 == 24018
replace district_outcome = 3 if fed11 == 24019
replace district_outcome = 3 if fed11 == 24020
replace district_outcome = 4 if fed11 == 24041
replace district_outcome = 3 if fed11 == 24021
replace district_outcome = 3 if fed11 == 24022
replace district_outcome = 3 if fed11 == 24023
replace district_outcome = 3 if fed11 == 24024
replace district_outcome = 3 if fed11 == 24025
replace district_outcome = 3 if fed11 == 24026
replace district_outcome = 1 if fed11 == 24027
replace district_outcome = 3 if fed11 == 24028
replace district_outcome = 3 if fed11 == 24029
replace district_outcome = 3 if fed11 == 24030
replace district_outcome = 3 if fed11 == 24031
replace district_outcome = 3 if fed11 == 24032
replace district_outcome = 3 if fed11 == 24033
replace district_outcome = 2 if fed11 == 24034
replace district_outcome = 3 if fed11 == 24035
replace district_outcome = 2 if fed11 == 24036
replace district_outcome = 3 if fed11 == 24037
replace district_outcome = 3 if fed11 == 24038
replace district_outcome = 3 if fed11 == 24039
replace district_outcome = 3 if fed11 == 24040
replace district_outcome = 2 if fed11 == 24042
replace district_outcome = 3 if fed11 == 24043
replace district_outcome = 3 if fed11 == 24058
replace district_outcome = 3 if fed11 == 24014
replace district_outcome = 1 if fed11 == 24044
replace district_outcome = 3 if fed11 == 24045
replace district_outcome = 3 if fed11 == 24047
replace district_outcome = 1 if fed11 == 24048
replace district_outcome = 3 if fed11 == 24049
replace district_outcome = 3 if fed11 == 24050
replace district_outcome = 3 if fed11 == 24051
replace district_outcome = 3 if fed11 == 24052
replace district_outcome = 3 if fed11 == 24053
replace district_outcome = 4 if fed11 == 24055
replace district_outcome = 3 if fed11 == 24056
replace district_outcome = 3 if fed11 == 24057
replace district_outcome = 3 if fed11 == 24059
replace district_outcome = 2 if fed11 == 24060
replace district_outcome = 3 if fed11 == 24061
replace district_outcome = 3 if fed11 == 24062
replace district_outcome = 3 if fed11 == 24063
replace district_outcome = 3 if fed11 == 24064
replace district_outcome = 3 if fed11 == 24065
replace district_outcome = 1 if fed11 == 24066
replace district_outcome = 1 if fed11 == 24067
replace district_outcome = 3 if fed11 == 24068
replace district_outcome = 3 if fed11 == 24069
replace district_outcome = 3 if fed11 == 24070
replace district_outcome = 3 if fed11 == 24071
replace district_outcome = 3 if fed11 == 24072
replace district_outcome = 3 if fed11 == 24073
replace district_outcome = 3 if fed11 == 24074
replace district_outcome = 1 if fed11 == 24075
replace district_outcome = 2 if fed11 == 35001
replace district_outcome = 3 if fed11 == 35002
replace district_outcome = 2 if fed11 == 35003
replace district_outcome = 2 if fed11 == 35004
replace district_outcome = 3 if fed11 == 35005
replace district_outcome = 2 if fed11 == 35006
replace district_outcome = 2 if fed11 == 35007
replace district_outcome = 2 if fed11 == 35008
replace district_outcome = 2 if fed11 == 35009
replace district_outcome = 2 if fed11 == 35026
replace district_outcome = 2 if fed11 == 35010
replace district_outcome = 2 if fed11 == 35011
replace district_outcome = 2 if fed11 == 35012
replace district_outcome = 2 if fed11 == 35013
replace district_outcome = 3 if fed11 == 35015
replace district_outcome = 2 if fed11 == 35016
replace district_outcome = 2 if fed11 == 35017
replace district_outcome = 2 if fed11 == 35018
replace district_outcome = 2 if fed11 == 35014
replace district_outcome = 2 if fed11 == 35019
replace district_outcome = 2 if fed11 == 35020
replace district_outcome = 2 if fed11 == 35021
replace district_outcome = 2 if fed11 == 35022
replace district_outcome = 2 if fed11 == 35023
replace district_outcome = 1 if fed11 == 35024
replace district_outcome = 2 if fed11 == 35025
replace district_outcome = 1 if fed11 == 35027
replace district_outcome = 2 if fed11 == 35028
replace district_outcome = 2 if fed11 == 35029
replace district_outcome = 2 if fed11 == 35030
replace district_outcome = 3 if fed11 == 35031
replace district_outcome = 3 if fed11 == 35032
replace district_outcome = 3 if fed11 == 35033
replace district_outcome = 2 if fed11 == 35034
replace district_outcome = 2 if fed11 == 35035
replace district_outcome = 1 if fed11 == 35036
replace district_outcome = 2 if fed11 == 35037
replace district_outcome = 2 if fed11 == 35038
replace district_outcome = 2 if fed11 == 35039
replace district_outcome = 2 if fed11 == 35046
replace district_outcome = 2 if fed11 == 35040
replace district_outcome = 2 if fed11 == 35041
replace district_outcome = 3 if fed11 == 35042
replace district_outcome = 2 if fed11 == 35043
replace district_outcome = 2 if fed11 == 35044
replace district_outcome = 1 if fed11 == 35045
replace district_outcome = 2 if fed11 == 35047
replace district_outcome = 2 if fed11 == 35048
replace district_outcome = 2 if fed11 == 35049
replace district_outcome = 2 if fed11 == 35050
replace district_outcome = 2 if fed11 == 35051
replace district_outcome = 2 if fed11 == 35052
replace district_outcome = 2 if fed11 == 35053
replace district_outcome = 2 if fed11 == 35054
replace district_outcome = 2 if fed11 == 35055
replace district_outcome = 3 if fed11 == 35056
replace district_outcome = 2 if fed11 == 35057
replace district_outcome = 2 if fed11 == 35058
replace district_outcome = 2 if fed11 == 35059
replace district_outcome = 2 if fed11 == 35060
replace district_outcome = 2 if fed11 == 35061
replace district_outcome = 3 if fed11 == 35062
replace district_outcome = 2 if fed11 == 35063
replace district_outcome = 1 if fed11 == 35064
replace district_outcome = 1 if fed11 == 35065
replace district_outcome = 2 if fed11 == 35066
replace district_outcome = 2 if fed11 == 35067
replace district_outcome = 3 if fed11 == 35068
replace district_outcome = 2 if fed11 == 35069
replace district_outcome = 2 if fed11 == 35070
replace district_outcome = 2 if fed11 == 35071
replace district_outcome = 2 if fed11 == 35072
replace district_outcome = 2 if fed11 == 35073
replace district_outcome = 2 if fed11 == 35074
replace district_outcome = 2 if fed11 == 35075
replace district_outcome = 2 if fed11 == 35076
replace district_outcome = 1 if fed11 == 35077
replace district_outcome = 2 if fed11 == 35078
replace district_outcome = 2 if fed11 == 35079
replace district_outcome = 1 if fed11 == 35080
replace district_outcome = 2 if fed11 == 35081
replace district_outcome = 1 if fed11 == 35082
replace district_outcome = 3 if fed11 == 35083
replace district_outcome = 3 if fed11 == 35084
replace district_outcome = 2 if fed11 == 35085
replace district_outcome = 2 if fed11 == 35086
replace district_outcome = 2 if fed11 == 35087
replace district_outcome = 3 if fed11 == 35088
replace district_outcome = 2 if fed11 == 35089
replace district_outcome = 3 if fed11 == 35090
replace district_outcome = 3 if fed11 == 35091
replace district_outcome = 3 if fed11 == 35092
replace district_outcome = 1 if fed11 == 35093
replace district_outcome = 3 if fed11 == 35094
replace district_outcome = 3 if fed11 == 35095
replace district_outcome = 2 if fed11 == 35096
replace district_outcome = 3 if fed11 == 35097
replace district_outcome = 2 if fed11 == 35098
replace district_outcome = 2 if fed11 == 35099
replace district_outcome = 2 if fed11 == 35100
replace district_outcome = 3 if fed11 == 35101
replace district_outcome = 3 if fed11 == 35102
replace district_outcome = 2 if fed11 == 35103
replace district_outcome = 2 if fed11 == 35104
replace district_outcome = 3 if fed11 == 35105
replace district_outcome = 1 if fed11 == 35106
replace district_outcome = 2 if fed11 == 46001
replace district_outcome = 2 if fed11 == 46002
replace district_outcome = 3 if fed11 == 46003
replace district_outcome = 2 if fed11 == 46004
replace district_outcome = 2 if fed11 == 46005
replace district_outcome = 2 if fed11 == 46006
replace district_outcome = 2 if fed11 == 46007
replace district_outcome = 2 if fed11 == 46008
replace district_outcome = 2 if fed11 == 46009
replace district_outcome = 2 if fed11 == 46010
replace district_outcome = 3 if fed11 == 46011
replace district_outcome = 1 if fed11 == 46012
replace district_outcome = 2 if fed11 == 46013
replace district_outcome = 2 if fed11 == 46014
replace district_outcome = 2 if fed11 == 47001
replace district_outcome = 2 if fed11 == 47002
replace district_outcome = 2 if fed11 == 47004
replace district_outcome = 2 if fed11 == 47003
replace district_outcome = 2 if fed11 == 47005
replace district_outcome = 2 if fed11 == 47006
replace district_outcome = 2 if fed11 == 47007
replace district_outcome = 2 if fed11 == 47008
replace district_outcome = 2 if fed11 == 47009
replace district_outcome = 2 if fed11 == 47010
replace district_outcome = 2 if fed11 == 47011
replace district_outcome = 2 if fed11 == 47012
replace district_outcome = 1 if fed11 == 47013
replace district_outcome = 2 if fed11 == 47014
replace district_outcome = 2 if fed11 == 48006
replace district_outcome = 2 if fed11 == 48003
replace district_outcome = 2 if fed11 == 48002
replace district_outcome = 2 if fed11 == 48004
replace district_outcome = 2 if fed11 == 48005
replace district_outcome = 2 if fed11 == 48007
replace district_outcome = 2 if fed11 == 48008
replace district_outcome = 2 if fed11 == 48009
replace district_outcome = 2 if fed11 == 48010
replace district_outcome = 2 if fed11 == 48012
replace district_outcome = 2 if fed11 == 48013
replace district_outcome = 2 if fed11 == 48014
replace district_outcome = 2 if fed11 == 48011
replace district_outcome = 2 if fed11 == 48015
replace district_outcome = 2 if fed11 == 48016
replace district_outcome = 2 if fed11 == 48017
replace district_outcome = 3 if fed11 == 48018
replace district_outcome = 2 if fed11 == 48001
replace district_outcome = 2 if fed11 == 48019
replace district_outcome = 2 if fed11 == 48020
replace district_outcome = 2 if fed11 == 48021
replace district_outcome = 2 if fed11 == 48022
replace district_outcome = 2 if fed11 == 48023
replace district_outcome = 2 if fed11 == 48024
replace district_outcome = 2 if fed11 == 48025
replace district_outcome = 2 if fed11 == 48026
replace district_outcome = 2 if fed11 == 48027
replace district_outcome = 2 if fed11 == 48028
replace district_outcome = 2 if fed11 == 59001
replace district_outcome = 3 if fed11 == 59026
replace district_outcome = 3 if fed11 == 59002
replace district_outcome = 3 if fed11 == 59003
replace district_outcome = 2 if fed11 == 59004
replace district_outcome = 2 if fed11 == 59005
replace district_outcome = 2 if fed11 == 59006
replace district_outcome = 3 if fed11 == 59008
replace district_outcome = 2 if fed11 == 59009
replace district_outcome = 2 if fed11 == 59010
replace district_outcome = 2 if fed11 == 59011
replace district_outcome = 2 if fed11 == 59012
replace district_outcome = 2 if fed11 == 59013
replace district_outcome = 2 if fed11 == 59014
replace district_outcome = 3 if fed11 == 59015
replace district_outcome = 3 if fed11 == 59016
replace district_outcome = 3 if fed11 == 59017
replace district_outcome = 2 if fed11 == 59019
replace district_outcome = 2 if fed11 == 59020
replace district_outcome = 2 if fed11 == 59018
replace district_outcome = 2 if fed11 == 59007
replace district_outcome = 2 if fed11 == 59021
replace district_outcome = 2 if fed11 == 59022
replace district_outcome = 2 if fed11 == 59023
replace district_outcome = 5 if fed11 == 59024
replace district_outcome = 3 if fed11 == 59025
replace district_outcome = 2 if fed11 == 59027
replace district_outcome = 3 if fed11 == 59028
replace district_outcome = 1 if fed11 == 59029
replace district_outcome = 3 if fed11 == 59030
replace district_outcome = 2 if fed11 == 59031
replace district_outcome = 3 if fed11 == 59032
replace district_outcome = 1 if fed11 == 59033
replace district_outcome = 2 if fed11 == 59034
replace district_outcome = 3 if fed11 == 59035
replace district_outcome = 2 if fed11 == 59036
replace district_outcome = 2 if fed11 == 60001
replace district_outcome = 3 if fed11 == 61001
replace district_outcome = 2 if fed11 == 62001


*********************
** COMPETITIVENESS **
*********************

* Margin of victory by district

gen margin = .

replace margin = 3.5 if fed11 == 10001
replace margin = 30.1 if fed11 == 10002
replace margin = 31.8 if fed11 == 10003
replace margin = .7000008 if fed11 == 10004
replace margin = 17.7 if fed11 == 10005
replace margin = 50.3 if fed11 == 10006
replace margin = 19.4 if fed11 == 10007
replace margin = 11.2 if fed11 == 11001
replace margin = 6.799999 if fed11 == 11002
replace margin = 23.3 if fed11 == 11003
replace margin = 3.300003 if fed11 == 11004
replace margin = 15.8 if fed11 == 12001
replace margin = 32 if fed11 == 12002
replace margin = 1.200001 if fed11 == 12003
replace margin = 26 if fed11 == 12004
replace margin = 5.400002 if fed11 == 12005
replace margin = 3 if fed11 == 12006
replace margin = 29.3 if fed11 == 12007
replace margin = 23.6 if fed11 == 12008
replace margin = 7 if fed11 == 12009
replace margin = 2.100002 if fed11 == 12010
replace margin = 10.6 if fed11 == 12011
replace margin = 53.5 if fed11 == 13001
replace margin = 5.799999 if fed11 == 13002
replace margin = 24.6 if fed11 == 13003
replace margin = 31.1 if fed11 == 13004
replace margin = 5.399998 if fed11 == 13005
replace margin = 29.3 if fed11 == 13006
replace margin = 4.400002 if fed11 == 13007
replace margin = 33.4 if fed11 == 13008
replace margin = 19 if fed11 == 13009
replace margin = 43.7 if fed11 == 13010
replace margin = 19.6 if fed11 == 24001
replace margin = 1.5 if fed11 == 24002
replace margin = 19.3 if fed11 == 24003
replace margin = 15.3 if fed11 == 24004
replace margin = 20.7 if fed11 == 24005
replace margin = 10.6 if fed11 == 24006
replace margin = 19.9 if fed11 == 24007
replace margin = 10.2 if fed11 == 24008
replace margin = 8.600002 if fed11 == 24009
replace margin = 20.5 if fed11 == 24010
replace margin = 13.7 if fed11 == 24011
replace margin = 15 if fed11 == 24012
replace margin = 14.7 if fed11 == 24013
replace margin = 2.399998 if fed11 == 24014
replace margin = 25.3 if fed11 == 24015
replace margin = 9.299999 if fed11 == 24016
replace margin = 21.6 if fed11 == 24017
replace margin = 29.6 if fed11 == 24018
replace margin = 2.199999 if fed11 == 24019
replace margin = 46.7 if fed11 == 24020
replace margin = 17 if fed11 == 24021
replace margin = 6.000002 if fed11 == 24022
replace margin = 38.9 if fed11 == 24023
replace margin = 20.5 if fed11 == 24024
replace margin = 14.4 if fed11 == 24025
replace margin = 8.200001 if fed11 == 24026
replace margin = 4.099998 if fed11 == 24027
replace margin = 15.8 if fed11 == 24028
replace margin = 15.5 if fed11 == 24029
replace margin = 12.3 if fed11 == 24030
replace margin = 10.7 if fed11 == 24031
replace margin = 20.6 if fed11 == 24032
replace margin = 27 if fed11 == 24033
replace margin = 10.1 if fed11 == 24034
replace margin = 24.7 if fed11 == 24035
replace margin = 1.400002 if fed11 == 24036
replace margin = 14.5 if fed11 == 24037
replace margin = 2.300003 if fed11 == 24038
replace margin = 17.7 if fed11 == 24039
replace margin = 23.3 if fed11 == 24040
replace margin = 10.5 if fed11 == 24041
replace margin = 22.9 if fed11 == 24042
replace margin = 22.8 if fed11 == 24043
replace margin = 5.800003 if fed11 == 24044
replace margin = 7.800001 if fed11 == 24045
replace margin = 22.1 if fed11 == 24046
replace margin = 32.7 if fed11 == 24047
replace margin = 10.1 if fed11 == 24048
replace margin = 3.599998 if fed11 == 24049
replace margin = 16.2 if fed11 == 24050
replace margin = 14.9 if fed11 == 24051
replace margin = 14.6 if fed11 == 24052
replace margin = 20.8 if fed11 == 24053
replace margin = 2.700001 if fed11 == 24054
replace margin = 1.299999 if fed11 == 24055
replace margin = 12.2 if fed11 == 24056
replace margin = 20.7 if fed11 == 24057
replace margin = .1000023 if fed11 == 24058
replace margin = 27.1 if fed11 == 24059
replace margin = 18 if fed11 == 24060
replace margin = 18.2 if fed11 == 24061
replace margin = 16.4 if fed11 == 24062
replace margin = 27.8 if fed11 == 24063
replace margin = 17 if fed11 == 24064
replace margin = 16.7 if fed11 == 24065
replace margin = 14.1 if fed11 == 24066
replace margin = 10 if fed11 == 24067
replace margin = 9.799999 if fed11 == 24068
replace margin = 27.7 if fed11 == 24069
replace margin = 7.199997 if fed11 == 24070
replace margin = 18.5 if fed11 == 24071
replace margin = 29.8 if fed11 == 24072
replace margin = 17.9 if fed11 == 24073
replace margin = 6.899998 if fed11 == 24074
replace margin = 1.600002 if fed11 == 24075
replace margin = 5.799999 if fed11 == 35001
replace margin = 21.4 if fed11 == 35002
replace margin = 26.6 if fed11 == 35003
replace margin = 35.8 if fed11 == 35004
replace margin = 10.8 if fed11 == 35005
replace margin = .9000015 if fed11 == 35006
replace margin = 20.4 if fed11 == 35007
replace margin = 9.799999 if fed11 == 35008
replace margin = 20.4 if fed11 == 35009
replace margin = 30.9 if fed11 == 35010
replace margin = 25.7 if fed11 == 35011
replace margin = 33 if fed11 == 35012
replace margin = 27.5 if fed11 == 35013
replace margin = 33.4 if fed11 == 35014
replace margin = 25.8 if fed11 == 35015
replace margin = 2.200001 if fed11 == 35016
replace margin = 1.100002 if fed11 == 35017
replace margin = 44.3 if fed11 == 35018
replace margin = 8.399998 if fed11 == 35019
replace margin = 32.9 if fed11 == 35020
replace margin = 12.9 if fed11 == 35021
replace margin = 0 if fed11 == 35022
replace margin = 5.200001 if fed11 == 35023
replace margin = 10.3 if fed11 == 35024
replace margin = 18.1 if fed11 == 35025
replace margin = 38.7 if fed11 == 35026
replace margin = 10.6 if fed11 == 35027
replace margin = 26 if fed11 == 35028
replace margin = 37.9 if fed11 == 35029
replace margin = 28.7 if fed11 == 35030
replace margin = 30.6 if fed11 == 35031
replace margin = 9 if fed11 == 35032
replace margin = 14.1 if fed11 == 35033
replace margin = 29.6 if fed11 == 35034
replace margin = 19.1 if fed11 == 35035
replace margin = 4.399998 if fed11 == 35036
replace margin = 11.1 if fed11 == 35037
replace margin = 32.3 if fed11 == 35038
replace margin = 3.300003 if fed11 == 35039
replace margin = 36.6 if fed11 == 35040
replace margin = 42.5 if fed11 == 35041
replace margin = 17.4 if fed11 == 35042
replace margin = 3.200001 if fed11 == 35043
replace margin = 17.7 if fed11 == 35044
replace margin = 3.400002 if fed11 == 35045
replace margin = 33.7 if fed11 == 35046
replace margin = 9.5 if fed11 == 35047
replace margin = 1.5 if fed11 == 35048
replace margin = 13.1 if fed11 == 35049
replace margin = 9.299999 if fed11 == 35050
replace margin = 6.900002 if fed11 == 35051
replace margin = 29.3 if fed11 == 35052
replace margin = 30.4 if fed11 == 35053
replace margin = 29.8 if fed11 == 35054
replace margin = 35.7 if fed11 == 35055
replace margin = 27 if fed11 == 35056
replace margin = .1000023 if fed11 == 35057
replace margin = 32.8 if fed11 == 35058
replace margin = 22.8 if fed11 == 35059
replace margin = 20.9 if fed11 == 35060
replace margin = 13.4 if fed11 == 35061
replace margin = 30.4 if fed11 == 35062
replace margin = 6.199997 if fed11 == 35063
replace margin = 10.7 if fed11 == 35064
replace margin = 8.800001 if fed11 == 35065
replace margin = 13.2 if fed11 == 35066
replace margin = 33.3 if fed11 == 35067
replace margin = 14.3 if fed11 == 35068
replace margin = 31.5 if fed11 == 35069
replace margin = 33.2 if fed11 == 35070
replace margin = 24.8 if fed11 == 35071
replace margin = 2.5 if fed11 == 35072
replace margin = 29.6 if fed11 == 35073
replace margin = 34.7 if fed11 == 35074
replace margin = 8.799999 if fed11 == 35075
replace margin = 27.1 if fed11 == 35076
replace margin = 8.199997 if fed11 == 35077
replace margin = 22.7 if fed11 == 35078
replace margin = 4.200001 if fed11 == 35079
replace margin = 11.2 if fed11 == 35080
replace margin = 3.899998 if fed11 == 35081
replace margin = 1.799999 if fed11 == 35082
replace margin = 10.7 if fed11 == 35083
replace margin = 3.200001 if fed11 == 35084
replace margin = 32 if fed11 == 35085
replace margin = 34.6 if fed11 == 35086
replace margin = 44.2 if fed11 == 35087
replace margin = 21.6 if fed11 == 35088
replace margin = 37.7 if fed11 == 35089
replace margin = 21.5 if fed11 == 35090
replace margin = 20.2 if fed11 == 35091
replace margin = 18.7 if fed11 == 35092
replace margin = 10.8 if fed11 == 35093
replace margin = 43.2 if fed11 == 35094
replace margin = 31.1 if fed11 == 35095
replace margin = 26.4 if fed11 == 35096
replace margin = 2 if fed11 == 35097
replace margin = 47.3 if fed11 == 35098
replace margin = 36.1 if fed11 == 35099
replace margin = 1.799999 if fed11 == 35100
replace margin = 16.3 if fed11 == 35101
replace margin = 22.7 if fed11 == 35102
replace margin = 15.2 if fed11 == 35103
replace margin = 44.3 if fed11 == 35104
replace margin = 7.299999 if fed11 == 35105
replace margin = 19.2 if fed11 == 35106
replace margin = 38.5 if fed11 == 46001
replace margin = 37.5 if fed11 == 46002
replace margin = 24.9 if fed11 == 46003
replace margin = 37 if fed11 == 46004
replace margin = .9000015 if fed11 == 46005
replace margin = 28.1 if fed11 == 46006
replace margin = 66.2 if fed11 == 46007
replace margin = 52.7 if fed11 == 46008
replace margin = 19.5 if fed11 == 46009
replace margin = 38.7 if fed11 == 46010
replace margin = 26.1 if fed11 == 46011
replace margin = .2000008 if fed11 == 46012
replace margin = 19.5 if fed11 == 46013
replace margin = 1.799999 if fed11 == 46014
replace margin = 39.8 if fed11 == 47001
replace margin = 17.6 if fed11 == 47002
replace margin = 3.600002 if fed11 == 47003
replace margin = 48.6 if fed11 == 47004
replace margin = 2.299999 if fed11 == 47005
replace margin = 30.4 if fed11 == 47006
replace margin = 16.4 if fed11 == 47007
replace margin = 15.1 if fed11 == 47008
replace margin = 17.6 if fed11 == 47009
replace margin = 1.799999 if fed11 == 47010
replace margin = 27 if fed11 == 47011
replace margin = 55.3 if fed11 == 47012
replace margin = 3.899998 if fed11 == 47013
replace margin = 47.1 if fed11 == 47014
replace margin = 58.6 if fed11 == 48001
replace margin = 53.3 if fed11 == 48002
replace margin = 40.5 if fed11 == 48003
replace margin = 29.1 if fed11 == 48004
replace margin = 57.7 if fed11 == 48005
replace margin = 40.2 if fed11 == 48006
replace margin = 66 if fed11 == 48007
replace margin = 63.2 if fed11 == 48008
replace margin = 44.5 if fed11 == 48009
replace margin = 74.9 if fed11 == 48010
replace margin = 37.2 if fed11 == 48011
replace margin = 22.6 if fed11 == 48012
replace margin = 15.3 if fed11 == 48013
replace margin = 44.3 if fed11 == 48014
replace margin = 42.1 if fed11 == 48015
replace margin = 15.2 if fed11 == 48016
replace margin = 55.3 if fed11 == 48017
replace margin = 12.9 if fed11 == 48018
replace margin = 29.3 if fed11 == 48019
replace margin = 67.2 if fed11 == 48020
replace margin = 58.4 if fed11 == 48021
replace margin = 59.7 if fed11 == 48022
replace margin = 60.8 if fed11 == 48023
replace margin = 68.5 if fed11 == 48024
replace margin = 65.60001 if fed11 == 48025
replace margin = 70 if fed11 == 48026
replace margin = 63.4 if fed11 == 48027
replace margin = 63.9 if fed11 == 48028
replace margin = 44.8 if fed11 == 59001
replace margin = 2.099998 if fed11 == 59002
replace margin = 13.9 if fed11 == 59003
replace margin = 26 if fed11 == 59004
replace margin = 31.4 if fed11 == 59005
replace margin = 30.9 if fed11 == 59006
replace margin = 18.8 if fed11 == 59007
replace margin = .7000008 if fed11 == 59008
replace margin = 14.7 if fed11 == 59009
replace margin = 15.3 if fed11 == 59010
replace margin = 35.3 if fed11 == 59011
replace margin = 22.7 if fed11 == 59012
replace margin = 44 if fed11 == 59013
replace margin = 8.100002 if fed11 == 59014
replace margin = 10.6 if fed11 == 59015
replace margin = 1.900002 if fed11 == 59016
replace margin = 4.400002 if fed11 == 59017
replace margin = 29 if fed11 == 59018
replace margin = 19 if fed11 == 59019
replace margin = 29.5 if fed11 == 59020
replace margin = 26 if fed11 == 59021
replace margin = 36.5 if fed11 == 59022
replace margin = 39.7 if fed11 == 59023
replace margin = 10.6 if fed11 == 59024
replace margin = 20.8 if fed11 == 59025
replace margin = 12 if fed11 == 59026
replace margin = 34.3 if fed11 == 59027
replace margin = 4.100002 if fed11 == 59028
replace margin = 5 if fed11 == 59029
replace margin = 43.9 if fed11 == 59030
replace margin = 3.099998 if fed11 == 59031
replace margin = 22 if fed11 == 59032
replace margin = 3.600002 if fed11 == 59033
replace margin = 8.599998 if fed11 == 59034
replace margin = 27.2 if fed11 == 59035
replace margin = 21.9 if fed11 == 59036
replace margin = .8999977 if fed11 == 60001
replace margin = 13.7 if fed11 == 61001
replace margin = 21.2 if fed11 == 62001

* Effective number of electoral parties by district

gen enep = .

replace enep = 2.64628 if fed11 == 10001
replace enep = 2.335194 if fed11 == 10002
replace enep = 2.41807 if fed11 == 10003
replace enep = 2.851782 if fed11 == 10004
replace enep = 2.637569 if fed11 == 10005
replace enep = 1.800158 if fed11 == 10006
replace enep = 2.757107 if fed11 == 10007
replace enep = 2.474023 if fed11 == 11001
replace enep = 3.062703 if fed11 == 11002
replace enep = 2.428658 if fed11 == 11003
replace enep = 2.812987 if fed11 == 11004
replace enep = 2.86726 if fed11 == 12001
replace enep = 2.454584 if fed11 == 12002
replace enep = 3.145465 if fed11 == 12003
replace enep = 2.731218 if fed11 == 12004
replace enep = 3.229933 if fed11 == 12005
replace enep = 3.01009 if fed11 == 12006
replace enep = 2.738976 if fed11 == 12007
replace enep = 2.499913 if fed11 == 12008
replace enep = 2.889447 if fed11 == 12009
replace enep = 2.948035 if fed11 == 12010
replace enep = 2.689748 if fed11 == 12011
replace enep = 1.879933 if fed11 == 13001
replace enep = 3.121342 if fed11 == 13002
replace enep = 2.887169 if fed11 == 13003
replace enep = 2.364256 if fed11 == 13004
replace enep = 3.069914 if fed11 == 13005
replace enep = 2.650031 if fed11 == 13006
replace enep = 3.225359 if fed11 == 13007
replace enep = 2.529692 if fed11 == 13008
replace enep = 2.717598 if fed11 == 13009
replace enep = 2.19715 if fed11 == 13010
replace enep = 2.663272 if fed11 == 24001
replace enep = 3.605175 if fed11 == 24002
replace enep = 3.443408 if fed11 == 24003
replace enep = 3.24391 if fed11 == 24004
replace enep = 2.748053 if fed11 == 24005
replace enep = 3.068219 if fed11 == 24006
replace enep = 3.098537 if fed11 == 24007
replace enep = 3.527262 if fed11 == 24008
replace enep = 3.272894 if fed11 == 24009
replace enep = 3.444855 if fed11 == 24010
replace enep = 3.456261 if fed11 == 24011
replace enep = 3.495806 if fed11 == 24012
replace enep = 3.073377 if fed11 == 24013
replace enep = 3.263921 if fed11 == 24014
replace enep = 2.772671 if fed11 == 24015
replace enep = 3.38382 if fed11 == 24016
replace enep = 3.092471 if fed11 == 24017
replace enep = 2.878245 if fed11 == 24018
replace enep = 3.752824 if fed11 == 24019
replace enep = 2.321872 if fed11 == 24020
replace enep = 2.887028 if fed11 == 24021
replace enep = 3.638997 if fed11 == 24022
replace enep = 2.442038 if fed11 == 24023
replace enep = 3.28513 if fed11 == 24024
replace enep = 2.883972 if fed11 == 24025
replace enep = 2.893811 if fed11 == 24026
replace enep = 3.444523 if fed11 == 24027
replace enep = 2.827383 if fed11 == 24028
replace enep = 3.479834 if fed11 == 24029
replace enep = 3.159747 if fed11 == 24030
replace enep = 2.794725 if fed11 == 24031
replace enep = 3.454124 if fed11 == 24032
replace enep = 3.209428 if fed11 == 24033
replace enep = 3.005214 if fed11 == 24034
replace enep = 2.769669 if fed11 == 24035
replace enep = 3.007365 if fed11 == 24036
replace enep = 3.648663 if fed11 == 24037
replace enep = 3.070848 if fed11 == 24038
replace enep = 2.828414 if fed11 == 24039
replace enep = 2.931262 if fed11 == 24040
replace enep = 3.779961 if fed11 == 24041
replace enep = 2.927624 if fed11 == 24042
replace enep = 2.61399 if fed11 == 24043
replace enep = 3.017948 if fed11 == 24044
replace enep = 3.445567 if fed11 == 24045
replace enep = 3.364975 if fed11 == 24046
replace enep = 2.569049 if fed11 == 24047
replace enep = 3.364455 if fed11 == 24048
replace enep = 3.503081 if fed11 == 24049
replace enep = 3.100237 if fed11 == 24050
replace enep = 3.261898 if fed11 == 24051
replace enep = 3.331557 if fed11 == 24052
replace enep = 2.645985 if fed11 == 24053
replace enep = 3.317564 if fed11 == 24054
replace enep = 3.493828 if fed11 == 24055
replace enep = 3.21858 if fed11 == 24056
replace enep = 2.9097 if fed11 == 24057
replace enep = 3.244067 if fed11 == 24058
replace enep = 2.521973 if fed11 == 24059
replace enep = 3.009166 if fed11 == 24060
replace enep = 2.644271 if fed11 == 24061
replace enep = 3.232229 if fed11 == 24062
replace enep = 2.754684 if fed11 == 24063
replace enep = 2.954489 if fed11 == 24064
replace enep = 3.375072 if fed11 == 24065
replace enep = 3.219409 if fed11 == 24066
replace enep = 3.2105 if fed11 == 24067
replace enep = 3.513457 if fed11 == 24068
replace enep = 2.890616 if fed11 == 24069
replace enep = 3.004627 if fed11 == 24070
replace enep = 2.825976 if fed11 == 24071
replace enep = 2.74207 if fed11 == 24072
replace enep = 3.364444 if fed11 == 24073
replace enep = 2.968328 if fed11 == 24074
replace enep = 3.331645 if fed11 == 24075
replace enep = 2.750547 if fed11 == 35001
replace enep = 2.618055 if fed11 == 35002
replace enep = 2.767906 if fed11 == 35003
replace enep = 2.535073 if fed11 == 35004
replace enep = 3.109704 if fed11 == 35005
replace enep = 3.203557 if fed11 == 35006
replace enep = 2.848954 if fed11 == 35007
replace enep = 2.817457 if fed11 == 35008
replace enep = 2.803264 if fed11 == 35009
replace enep = 2.599928 if fed11 == 35010
replace enep = 2.590734 if fed11 == 35011
replace enep = 2.464019 if fed11 == 35012
replace enep = 2.584019 if fed11 == 35013
replace enep = 2.655506 if fed11 == 35014
replace enep = 2.580279 if fed11 == 35015
replace enep = 3.130244 if fed11 == 35016
replace enep = 2.677469 if fed11 == 35017
replace enep = 2.473448 if fed11 == 35018
replace enep = 2.624948 if fed11 == 35019
replace enep = 2.438269 if fed11 == 35020
replace enep = 2.659532 if fed11 == 35021
replace enep = 2.764096 if fed11 == 35022
replace enep = 3.044808 if fed11 == 35023
replace enep = 2.949035 if fed11 == 35024
replace enep = 2.76868 if fed11 == 35025
replace enep = 2.605076 if fed11 == 35026
replace enep = 3.052727 if fed11 == 35027
replace enep = 2.760509 if fed11 == 35028
replace enep = 2.335996 if fed11 == 35029
replace enep = 2.561777 if fed11 == 35030
replace enep = 2.41037 if fed11 == 35031
replace enep = 2.826032 if fed11 == 35032
replace enep = 2.782361 if fed11 == 35033
replace enep = 2.542013 if fed11 == 35034
replace enep = 2.87841 if fed11 == 35035
replace enep = 3.084145 if fed11 == 35036
replace enep = 3.067249 if fed11 == 35037
replace enep = 2.621321 if fed11 == 35038
replace enep = 2.971 if fed11 == 35039
replace enep = 2.488237 if fed11 == 35040
replace enep = 2.320541 if fed11 == 35041
replace enep = 2.594141 if fed11 == 35042
replace enep = 3.186236 if fed11 == 35043
replace enep = 2.961559 if fed11 == 35044
replace enep = 3.068247 if fed11 == 35045
replace enep = 2.428092 if fed11 == 35046
replace enep = 2.807743 if fed11 == 35047
replace enep = 2.906318 if fed11 == 35048
replace enep = 2.753888 if fed11 == 35049
replace enep = 2.688389 if fed11 == 35050
replace enep = 2.817362 if fed11 == 35051
replace enep = 2.574307 if fed11 == 35052
replace enep = 2.64759 if fed11 == 35053
replace enep = 2.655471 if fed11 == 35054
replace enep = 2.505399 if fed11 == 35055
replace enep = 2.490251 if fed11 == 35056
replace enep = 3.169482 if fed11 == 35057
replace enep = 2.642581 if fed11 == 35058
replace enep = 2.700849 if fed11 == 35059
replace enep = 2.623329 if fed11 == 35060
replace enep = 2.422715 if fed11 == 35061
replace enep = 2.766481 if fed11 == 35062
replace enep = 2.722 if fed11 == 35063
replace enep = 2.953076 if fed11 == 35064
replace enep = 3.241397 if fed11 == 35065
replace enep = 2.946003 if fed11 == 35066
replace enep = 2.36079 if fed11 == 35067
replace enep = 2.805088 if fed11 == 35068
replace enep = 2.573234 if fed11 == 35069
replace enep = 2.65112 if fed11 == 35070
replace enep = 2.808082 if fed11 == 35071
replace enep = 2.957338 if fed11 == 35072
replace enep = 2.656141 if fed11 == 35073
replace enep = 2.820882 if fed11 == 35074
replace enep = 2.865165 if fed11 == 35075
replace enep = 2.780419 if fed11 == 35076
replace enep = 3.122443 if fed11 == 35077
replace enep = 2.587978 if fed11 == 35078
replace enep = 2.890574 if fed11 == 35079
replace enep = 2.806072 if fed11 == 35080
replace enep = 3.139698 if fed11 == 35081
replace enep = 3.123653 if fed11 == 35082
replace enep = 3.044048 if fed11 == 35083
replace enep = 3.23201 if fed11 == 35084
replace enep = 3.207781 if fed11 == 35085
replace enep = 2.65433 if fed11 == 35086
replace enep = 2.228164 if fed11 == 35087
replace enep = 2.759199 if fed11 == 35088
replace enep = 2.230863 if fed11 == 35089
replace enep = 2.786928 if fed11 == 35090
replace enep = 2.731882 if fed11 == 35091
replace enep = 2.634088 if fed11 == 35092
replace enep = 3.195715 if fed11 == 35093
replace enep = 2.35085 if fed11 == 35094
replace enep = 2.617842 if fed11 == 35095
replace enep = 2.379196 if fed11 == 35096
replace enep = 2.778094 if fed11 == 35097
replace enep = 2.204114 if fed11 == 35098
replace enep = 2.420862 if fed11 == 35099
replace enep = 2.725197 if fed11 == 35100
replace enep = 2.635303 if fed11 == 35101
replace enep = 2.454674 if fed11 == 35102
replace enep = 2.688721 if fed11 == 35103
replace enep = 2.191142 if fed11 == 35104
replace enep = 3.046756 if fed11 == 35105
replace enep = 2.878684 if fed11 == 35106
replace enep = 2.103323 if fed11 == 46001
replace enep = 2.453663 if fed11 == 46002
replace enep = 2.688823 if fed11 == 46003
replace enep = 2.116841 if fed11 == 46004
replace enep = 2.348619 if fed11 == 46005
replace enep = 2.289498 if fed11 == 46006
replace enep = 1.68113 if fed11 == 46007
replace enep = 1.865463 if fed11 == 46008
replace enep = 2.671554 if fed11 == 46009
replace enep = 2.004579 if fed11 == 46010
replace enep = 2.618192 if fed11 == 46011
replace enep = 3.077444 if fed11 == 46012
replace enep = 2.520714 if fed11 == 46013
replace enep = 3.045958 if fed11 == 46014
replace enep = 1.912704 if fed11 == 47001
replace enep = 2.294078 if fed11 == 47002
replace enep = 2.330622 if fed11 == 47003
replace enep = 1.863165 if fed11 == 47004
replace enep = 2.356168 if fed11 == 47005
replace enep = 2.041929 if fed11 == 47006
replace enep = 2.355679 if fed11 == 47007
replace enep = 2.289346 if fed11 == 47008
replace enep = 2.4496 if fed11 == 47009
replace enep = 2.182929 if fed11 == 47010
replace enep = 2.245692 if fed11 == 47011
replace enep = 1.708543 if fed11 == 47012
replace enep = 2.9201 if fed11 == 47013
replace enep = 1.895932 if fed11 == 47014
replace enep = 1.83221 if fed11 == 48001
replace enep = 2.034128 if fed11 == 48002
replace enep = 2.620531 if fed11 == 48003
replace enep = 2.42603 if fed11 == 48004
replace enep = 1.905495 if fed11 == 48005
replace enep = 2.528087 if fed11 == 48006
replace enep = 1.66355 if fed11 == 48007
replace enep = 1.706266 if fed11 == 48008
replace enep = 2.283726 if fed11 == 48009
replace enep = 1.397436 if fed11 == 48010
replace enep = 2.262275 if fed11 == 48011
replace enep = 2.88777 if fed11 == 48012
replace enep = 2.36291 if fed11 == 48013
replace enep = 2.178507 if fed11 == 48014
replace enep = 2.162602 if fed11 == 48015
replace enep = 3.177377 if fed11 == 48016
replace enep = 1.849872 if fed11 == 48017
replace enep = 2.210443 if fed11 == 48018
replace enep = 2.478333 if fed11 == 48019
replace enep = 1.62364 if fed11 == 48020
replace enep = 1.848497 if fed11 == 48021
replace enep = 1.65901 if fed11 == 48022
replace enep = 1.658576 if fed11 == 48023
replace enep = 1.530962 if fed11 == 48024
replace enep = 1.598951 if fed11 == 48025
replace enep = 1.474313 if fed11 == 48026
replace enep = 1.723615 if fed11 == 48027
replace enep = 1.629503 if fed11 == 48028
replace enep = 2.105307 if fed11 == 59001
replace enep = 2.731404 if fed11 == 59002
replace enep = 2.584547 if fed11 == 59003
replace enep = 2.417216 if fed11 == 59004
replace enep = 2.448166 if fed11 == 59005
replace enep = 2.638857 if fed11 == 59006
replace enep = 2.346988 if fed11 == 59007
replace enep = 2.891953 if fed11 == 59008
replace enep = 2.780102 if fed11 == 59009
replace enep = 2.414485 if fed11 == 59010
replace enep = 2.502659 if fed11 == 59011
replace enep = 2.337787 if fed11 == 59012
replace enep = 2.131396 if fed11 == 59013
replace enep = 2.685119 if fed11 == 59014
replace enep = 2.53735 if fed11 == 59015
replace enep = 3.227295 if fed11 == 59016
replace enep = 2.555453 if fed11 == 59017
replace enep = 2.540095 if fed11 == 59018
replace enep = 2.83874 if fed11 == 59019
replace enep = 2.729563 if fed11 == 59020
replace enep = 2.411655 if fed11 == 59021
replace enep = 2.185305 if fed11 == 59022
replace enep = 2.428817 if fed11 == 59023
replace enep = 2.780095 if fed11 == 59024
replace enep = 2.336361 if fed11 == 59025
replace enep = 2.404181 if fed11 == 59026
replace enep = 2.699121 if fed11 == 59027
replace enep = 3.127952 if fed11 == 59028
replace enep = 3.9204 if fed11 == 59029
replace enep = 2.243506 if fed11 == 59030
replace enep = 2.482918 if fed11 == 59031
replace enep = 2.784166 if fed11 == 59032
replace enep = 2.865001 if fed11 == 59033
replace enep = 2.901082 if fed11 == 59034
replace enep = 2.883373 if fed11 == 59035
replace enep = 3.140368 if fed11 == 59036
replace enep = 3.584975 if fed11 == 60001
replace enep = 2.87639 if fed11 == 61001
replace enep = 2.707048 if fed11 == 62001


*******************************
** INCUMBENT PARTY REELECTED **
*******************************

gen reelected = .

replace reelected = 1 if fed11 == 10001
replace reelected = 1 if fed11 == 10002
replace reelected = 1 if fed11 == 10003
replace reelected = 0 if fed11 == 10004
replace reelected = 1 if fed11 == 10005
replace reelected = 1 if fed11 == 10006
replace reelected = 0 if fed11 == 10007
replace reelected = 1 if fed11 == 11001
replace reelected = 1 if fed11 == 11002
replace reelected = 1 if fed11 == 11003
replace reelected = 1 if fed11 == 11004
replace reelected = 1 if fed11 == 12001
replace reelected = 1 if fed11 == 12002
replace reelected = 0 if fed11 == 12003
replace reelected = 1 if fed11 == 12004
replace reelected = 1 if fed11 == 12005
replace reelected = 1 if fed11 == 12006
replace reelected = 0 if fed11 == 12007
replace reelected = 1 if fed11 == 12008
replace reelected = 1 if fed11 == 12009
replace reelected = 1 if fed11 == 12010
replace reelected = 1 if fed11 == 12011
replace reelected = 1 if fed11 == 13001
replace reelected = 1 if fed11 == 13002
replace reelected = 1 if fed11 == 13003
replace reelected = 1 if fed11 == 13004
replace reelected = 0 if fed11 == 13005
replace reelected = 1 if fed11 == 13006
replace reelected = 0 if fed11 == 13007
replace reelected = 1 if fed11 == 13008
replace reelected = 1 if fed11 == 13009
replace reelected = 1 if fed11 == 13010
replace reelected = 0 if fed11 == 24001
replace reelected = 1 if fed11 == 24002
replace reelected = 0 if fed11 == 24003
replace reelected = 0 if fed11 == 24004
replace reelected = 1 if fed11 == 24005
replace reelected = 0 if fed11 == 24006
replace reelected = 0 if fed11 == 24007
replace reelected = 0 if fed11 == 24008
replace reelected = 1 if fed11 == 24009
replace reelected = 0 if fed11 == 24010
replace reelected = 0 if fed11 == 24011
replace reelected = 0 if fed11 == 24012
replace reelected = 0 if fed11 == 24013
replace reelected = 0 if fed11 == 24014
replace reelected = 0 if fed11 == 24015
replace reelected = 0 if fed11 == 24016
replace reelected = 0 if fed11 == 24017
replace reelected = 0 if fed11 == 24018
replace reelected = 0 if fed11 == 24019
replace reelected = 0 if fed11 == 24020
replace reelected = 0 if fed11 == 24021
replace reelected = 0 if fed11 == 24022
replace reelected = 0 if fed11 == 24023
replace reelected = 0 if fed11 == 24024
replace reelected = 0 if fed11 == 24025
replace reelected = 0 if fed11 == 24026
replace reelected = 1 if fed11 == 24027
replace reelected = 0 if fed11 == 24028
replace reelected = 0 if fed11 == 24029
replace reelected = 0 if fed11 == 24030
replace reelected = 0 if fed11 == 24031
replace reelected = 0 if fed11 == 24032
replace reelected = 0 if fed11 == 24033
replace reelected = 1 if fed11 == 24034
replace reelected = 0 if fed11 == 24035
replace reelected = 1 if fed11 == 24036
replace reelected = 0 if fed11 == 24037
replace reelected = 0 if fed11 == 24038
replace reelected = 0 if fed11 == 24039
replace reelected = 0 if fed11 == 24040
replace reelected = 1 if fed11 == 24041
replace reelected = 1 if fed11 == 24042
replace reelected = 0 if fed11 == 24043
replace reelected = 1 if fed11 == 24044
replace reelected = 0 if fed11 == 24045
replace reelected = 0 if fed11 == 24046
replace reelected = 1 if fed11 == 24047
replace reelected = 1 if fed11 == 24048
replace reelected = 0 if fed11 == 24049
replace reelected = 0 if fed11 == 24050
replace reelected = 0 if fed11 == 24051
replace reelected = 0 if fed11 == 24052
replace reelected = 0 if fed11 == 24053
replace reelected = 1 if fed11 == 24054
replace reelected = 1 if fed11 == 24055
replace reelected = 0 if fed11 == 24056
replace reelected = 0 if fed11 == 24057
replace reelected = 0 if fed11 == 24058
replace reelected = 0 if fed11 == 24059
replace reelected = 1 if fed11 == 24060
replace reelected = 0 if fed11 == 24061
replace reelected = 0 if fed11 == 24062
replace reelected = 0 if fed11 == 24063
replace reelected = 0 if fed11 == 24064
replace reelected = 0 if fed11 == 24065
replace reelected = 1 if fed11 == 24066
replace reelected = 1 if fed11 == 24067
replace reelected = 0 if fed11 == 24068
replace reelected = 0 if fed11 == 24069
replace reelected = 0 if fed11 == 24070
replace reelected = 0 if fed11 == 24071
replace reelected = 0 if fed11 == 24072
replace reelected = 0 if fed11 == 24073
replace reelected = 0 if fed11 == 24074
replace reelected = 1 if fed11 == 24075
replace reelected = 0 if fed11 == 35001
replace reelected = 1 if fed11 == 35002
replace reelected = 1 if fed11 == 35003
replace reelected = 1 if fed11 == 35004
replace reelected = 0 if fed11 == 35005
replace reelected = 0 if fed11 == 35006
replace reelected = 0 if fed11 == 35007
replace reelected = 0 if fed11 == 35008
replace reelected = 1 if fed11 == 35009
replace reelected = 1 if fed11 == 35010
replace reelected = 1 if fed11 == 35011
replace reelected = 1 if fed11 == 35012
replace reelected = 1 if fed11 == 35013
replace reelected = 1 if fed11 == 35014
replace reelected = 0 if fed11 == 35015
replace reelected = 0 if fed11 == 35016
replace reelected = 0 if fed11 == 35017
replace reelected = 1 if fed11 == 35018
replace reelected = 0 if fed11 == 35019
replace reelected = 1 if fed11 == 35020
replace reelected = 1 if fed11 == 35021
replace reelected = 0 if fed11 == 35022
replace reelected = 0 if fed11 == 35023
replace reelected = 1 if fed11 == 35024
replace reelected = 1 if fed11 == 35025
replace reelected = 1 if fed11 == 35026
replace reelected = 1 if fed11 == 35027
replace reelected = 1 if fed11 == 35028
replace reelected = 1 if fed11 == 35029
replace reelected = 1 if fed11 == 35030
replace reelected = 1 if fed11 == 35031
replace reelected = 1 if fed11 == 35032
replace reelected = 1 if fed11 == 35033
replace reelected = 1 if fed11 == 35034
replace reelected = 1 if fed11 == 35035
replace reelected = 1 if fed11 == 35036
replace reelected = 1 if fed11 == 35037
replace reelected = 1 if fed11 == 35038
replace reelected = 1 if fed11 == 35039
replace reelected = 1 if fed11 == 35040
replace reelected = 1 if fed11 == 35041
replace reelected = 1 if fed11 == 35042
replace reelected = 0 if fed11 == 35043
replace reelected = 1 if fed11 == 35044
replace reelected = 1 if fed11 == 35045
replace reelected = 1 if fed11 == 35046
replace reelected = 0 if fed11 == 35047
replace reelected = 0 if fed11 == 35048
replace reelected = 1 if fed11 == 35049
replace reelected = 0 if fed11 == 35050
replace reelected = 0 if fed11 == 35051
replace reelected = 1 if fed11 == 35052
replace reelected = 1 if fed11 == 35053
replace reelected = 1 if fed11 == 35054
replace reelected = 1 if fed11 == 35055
replace reelected = 1 if fed11 == 35056
replace reelected = 0 if fed11 == 35057
replace reelected = 1 if fed11 == 35058
replace reelected = 1 if fed11 == 35059
replace reelected = 1 if fed11 == 35060
replace reelected = 1 if fed11 == 35061
replace reelected = 1 if fed11 == 35062
replace reelected = 1 if fed11 == 35063
replace reelected = 1 if fed11 == 35064
replace reelected = 1 if fed11 == 35065
replace reelected = 1 if fed11 == 35066
replace reelected = 1 if fed11 == 35067
replace reelected = 0 if fed11 == 35068
replace reelected = 1 if fed11 == 35069
replace reelected = 1 if fed11 == 35070
replace reelected = 1 if fed11 == 35071
replace reelected = 0 if fed11 == 35072
replace reelected = 1 if fed11 == 35073
replace reelected = 1 if fed11 == 35074
replace reelected = 0 if fed11 == 35075
replace reelected = 1 if fed11 == 35076
replace reelected = 1 if fed11 == 35077
replace reelected = 1 if fed11 == 35078
replace reelected = 0 if fed11 == 35079
replace reelected = 1 if fed11 == 35080
replace reelected = 0 if fed11 == 35081
replace reelected = 1 if fed11 == 35082
replace reelected = 0 if fed11 == 35083
replace reelected = 0 if fed11 == 35084
replace reelected = 1 if fed11 == 35085
replace reelected = 1 if fed11 == 35086
replace reelected = 1 if fed11 == 35087
replace reelected = 1 if fed11 == 35088
replace reelected = 1 if fed11 == 35089
replace reelected = 1 if fed11 == 35090
replace reelected = 1 if fed11 == 35091
replace reelected = 1 if fed11 == 35092
replace reelected = 1 if fed11 == 35093
replace reelected = 1 if fed11 == 35094
replace reelected = 1 if fed11 == 35095
replace reelected = 0 if fed11 == 35096
replace reelected = 1 if fed11 == 35097
replace reelected = 1 if fed11 == 35098
replace reelected = 1 if fed11 == 35099
replace reelected = 0 if fed11 == 35100
replace reelected = 1 if fed11 == 35101
replace reelected = 1 if fed11 == 35102
replace reelected = 0 if fed11 == 35103
replace reelected = 1 if fed11 == 35104
replace reelected = 0 if fed11 == 35105
replace reelected = 1 if fed11 == 35106
replace reelected = 1 if fed11 == 46001
replace reelected = 1 if fed11 == 46002
replace reelected = 1 if fed11 == 46003
replace reelected = 1 if fed11 == 46004
replace reelected = 0 if fed11 == 46005
replace reelected = 1 if fed11 == 46006
replace reelected = 1 if fed11 == 46007
replace reelected = 1 if fed11 == 46008
replace reelected = 1 if fed11 == 46009
replace reelected = 1 if fed11 == 46010
replace reelected = 1 if fed11 == 46011
replace reelected = 0 if fed11 == 46012
replace reelected = 1 if fed11 == 46013
replace reelected = 0 if fed11 == 46014
replace reelected = 1 if fed11 == 47001
replace reelected = 1 if fed11 == 47002
replace reelected = 1 if fed11 == 47003
replace reelected = 1 if fed11 == 47004
replace reelected = 1 if fed11 == 47005
replace reelected = 1 if fed11 == 47006
replace reelected = 1 if fed11 == 47007
replace reelected = 1 if fed11 == 47008
replace reelected = 1 if fed11 == 47009
replace reelected = 1 if fed11 == 47010
replace reelected = 1 if fed11 == 47011
replace reelected = 1 if fed11 == 47012
replace reelected = 1 if fed11 == 47013
replace reelected = 1 if fed11 == 47014
replace reelected = 1 if fed11 == 48001
replace reelected = 1 if fed11 == 48002
replace reelected = 1 if fed11 == 48003
replace reelected = 1 if fed11 == 48004
replace reelected = 1 if fed11 == 48005
replace reelected = 1 if fed11 == 48006
replace reelected = 1 if fed11 == 48007
replace reelected = 1 if fed11 == 48008
replace reelected = 1 if fed11 == 48009
replace reelected = 1 if fed11 == 48010
replace reelected = 1 if fed11 == 48011
replace reelected = 1 if fed11 == 48012
replace reelected = 1 if fed11 == 48013
replace reelected = 1 if fed11 == 48014
replace reelected = 1 if fed11 == 48015
replace reelected = 1 if fed11 == 48016
replace reelected = 1 if fed11 == 48017
replace reelected = 1 if fed11 == 48018
replace reelected = 1 if fed11 == 48019
replace reelected = 1 if fed11 == 48020
replace reelected = 1 if fed11 == 48021
replace reelected = 1 if fed11 == 48022
replace reelected = 1 if fed11 == 48023
replace reelected = 1 if fed11 == 48024
replace reelected = 1 if fed11 == 48025
replace reelected = 1 if fed11 == 48026
replace reelected = 1 if fed11 == 48027
replace reelected = 1 if fed11 == 48028
replace reelected = 1 if fed11 == 59001
replace reelected = 1 if fed11 == 59002
replace reelected = 1 if fed11 == 59003
replace reelected = 1 if fed11 == 59004
replace reelected = 1 if fed11 == 59005
replace reelected = 1 if fed11 == 59006
replace reelected = 1 if fed11 == 59007
replace reelected = 0 if fed11 == 59008
replace reelected = 1 if fed11 == 59009
replace reelected = 1 if fed11 == 59010
replace reelected = 1 if fed11 == 59011
replace reelected = 1 if fed11 == 59012
replace reelected = 1 if fed11 == 59013
replace reelected = 1 if fed11 == 59014
replace reelected = 1 if fed11 == 59015
replace reelected = 0 if fed11 == 59016
replace reelected = 1 if fed11 == 59017
replace reelected = 1 if fed11 == 59018
replace reelected = 1 if fed11 == 59019
replace reelected = 1 if fed11 == 59020
replace reelected = 1 if fed11 == 59021
replace reelected = 1 if fed11 == 59022
replace reelected = 1 if fed11 == 59023
replace reelected = 0 if fed11 == 59024
replace reelected = 1 if fed11 == 59025
replace reelected = 1 if fed11 == 59026
replace reelected = 1 if fed11 == 59027
replace reelected = 0 if fed11 == 59028
replace reelected = 1 if fed11 == 59029
replace reelected = 1 if fed11 == 59030
replace reelected = 1 if fed11 == 59031
replace reelected = 1 if fed11 == 59032
replace reelected = 1 if fed11 == 59033
replace reelected = 0 if fed11 == 59034
replace reelected = 1 if fed11 == 59035
replace reelected = 1 if fed11 == 59036
replace reelected = 0 if fed11 == 60001
replace reelected = 1 if fed11 == 61001
replace reelected = 1 if fed11 == 62001


***************************
** INDEPENDENT VARIABLES **
***************************

* Time

gen surveydate = mdy(CPS_INTMONTH11,CPS_INTDAY11,CPS_INTYEAR11)

format %tdMon_DD,_CCYY surveydate

gen edate = 20110502

gen electiondate = date(string(edate,"%8.0f"),"YMD")

format %tdMon_DD,_CCYY electiondate

gen time = electiondate - surveydate

* Gender

gen male = RGENDER11

recode male (5=0)

* Age

gen age = MBS11_L1

recode age (-9999=.)

replace age = 2011 - age

replace age = . if age < 17

* Education

gen education = CPS11_79

recode education (98=.)
recode education (99=.)

* Interest for election

gen interest = CPS11_9

recode interest (98=.)
recode interest (99=.)

* Party identification (national)

gen pidstatus_whole = .

replace pidstatus_whole = 9999 if CPS11_71 == .
replace pidstatus_whole = 9999 if CPS11_71 == 8
replace pidstatus_whole = 9999 if CPS11_71 == 9

replace pidstatus_whole = 2 if CPS11_71 == 6

replace pidstatus_whole = 3 if CPS11_71 == 2 & pidstatus_whole!=2 & pidstatus_whole!=9999

replace pidstatus_whole = 1 if CPS11_71!=2 & CPS11_71!=. & pidstatus_whole!=2 & pidstatus_whole!=3 & pidstatus_whole!=9999

replace pidstatus_whole = . if pidstatus_whole == 9999
 
label define pidstatus 1 "Loser PID" 2 "No PID" 3 "Winner PID"
label values pidstatus_whole pidstatus

* Party identification scale (national)

gen pidscale_whole = .

replace pidscale_whole = 1 if pidstatus_whole == 1 & CPS11_72 == 1
replace pidscale_whole = 2 if pidstatus_whole == 1 & CPS11_72 == 3
replace pidscale_whole = 3 if pidstatus_whole == 1 & CPS11_72 == 5
replace pidscale_whole = 4 if pidstatus_whole == 2
replace pidscale_whole = 5 if pidstatus_whole == 3 & CPS11_72 == 5
replace pidscale_whole = 6 if pidstatus_whole == 3 & CPS11_72 == 3
replace pidscale_whole = 7 if pidstatus_whole == 3 & CPS11_72 == 1

label define pidscale 1 "Very strong loser PID" 2 "Fairly strong loser PID" 3 "Not very strong loser PID" 4 "No PID" 5 "Not very strong winner PID" 6 "Fairly strong winner PID" 7 "Very strong winner PID"
label values pidscale_whole pidscale

* Party identification (district)

gen pidstatus_district = .

replace pidstatus_district = 9999 if CPS11_71 == .
replace pidstatus_district = 9999 if CPS11_71 == 8
replace pidstatus_district = 9999 if CPS11_71 == 9

replace pidstatus_district = 2 if CPS11_71 == 6

replace pidstatus_district = 3 if CPS11_71 == district_outcome & pidstatus_district!=2 & pidstatus_district!=9999

replace pidstatus_district = 1 if CPS11_71!=district_outcome & CPS11_71!=. & pidstatus_district!=2 & pidstatus_district!=3 & pidstatus_district!=9999

replace pidstatus_district = . if pidstatus_district == 9999
 
label values pidstatus_district pidstatus

* Party identification scale (district)

gen pidscale_district = .

replace pidscale_district = 1 if pidstatus_district == 1 & CPS11_72 == 1
replace pidscale_district = 2 if pidstatus_district == 1 & CPS11_72 == 3
replace pidscale_district = 3 if pidstatus_district == 1 & CPS11_72 == 5
replace pidscale_district = 4 if pidstatus_district == 2
replace pidscale_district = 5 if pidstatus_district == 3 & CPS11_72 == 5
replace pidscale_district = 6 if pidstatus_district == 3 & CPS11_72 == 3
replace pidscale_district = 7 if pidstatus_district == 3 & CPS11_72 == 1

label values pidscale_district pidscale

* Political discussion (post) #1

gen discussion1_family = PES11_79
gen discussion1_friends = PES11_80

recode discussion1_family discussion1_friends (98=.)
recode discussion1_family discussion1_friends (99=.)

gen discussion1 = discussion1_family + discussion1_friends

gen discussion1_family_3pts = 0 if discussion1_family < 2 & discussion1_family!=.
replace discussion1_family_3pts = 1 if discussion1_family >= 2 & discussion1_family < 4 & discussion1_family!=.
replace discussion1_family_3pts = 2 if discussion1_family >= 4 & discussion1_family!=.

gen discussion1_friends_3pts = 0 if discussion1_friends < 2 & discussion1_friends!=.
replace discussion1_friends_3pts = 1 if discussion1_friends >= 2 & discussion1_friends < 4 & discussion1_friends!=.
replace discussion1_friends_3pts = 2 if discussion1_friends >= 4 & discussion1_friends!=.

egen discussion1_3pts = rowmax(discussion1_family_3pts discussion1_friends_3pts)

* Political discussion (post) #2

gen discussion2_friends = MBS11_F4
gen discussion2_coworkers = MBS11_F6

recode discussion2_friends discussion2_coworkers (-9=.)

replace discussion2_friends = discussion2_friends - 1

replace discussion2_coworkers = discussion2_coworkers - 1

gen discussion2 = discussion2_friends + discussion2_coworkers

gen discussion2_friends_3pts = discussion2_friends
replace discussion2_friends_3pts = 0 if discussion2_friends == 1
replace discussion2_friends_3pts = 1 if discussion2_friends == 2
replace discussion2_friends_3pts = 2 if discussion2_friends == 3

gen discussion2_coworkers_3pts = discussion2_coworkers
replace discussion2_coworkers_3pts = 0 if discussion2_coworkers == 1
replace discussion2_coworkers_3pts = 1 if discussion2_coworkers == 2
replace discussion2_coworkers_3pts = 2 if discussion2_coworkers == 3

egen discussion2_3pts = rowmax(discussion2_friends_3pts discussion2_coworkers_3pts)

* Network size

gen size = MBS11_F1

recode size (-9=.)

gen size_3pts = 0 if size == 0
replace size_3pts = 0 if size == 1
replace size_3pts = 1 if size == 2
replace size_3pts = 2 if size == 3
replace size_3pts = 2 if size == 4
replace size_3pts = 2 if size == 5

* Social contact

gen contact = MBS11_F2

recode contact (-9=.)

replace contact = 5 - contact

replace contact = 0 if size == 0

* Political disagreement

gen disagreement_friends = MBS11_F3b
gen disagreement_coworkers = MBS11_F5b

recode disagreement_friends disagreement_coworkers (-9=.)

replace disagreement_friends = disagreement_friends - 1

replace disagreement_coworkers = disagreement_coworkers - 1

replace disagreement_friends = 0 if size == 0

gen disagreement = disagreement_friends + disagreement_coworkers

gen disagreement_friends_3pts = disagreement_friends
gen disagreement_coworkers_3pts = disagreement_coworkers

replace disagreement_friends_3pts = 0 if disagreement_friends == 1
replace disagreement_friends_3pts = 1 if disagreement_friends == 2
replace disagreement_friends_3pts = 2 if disagreement_friends == 3
replace disagreement_friends_3pts = 2 if disagreement_friends == 4

replace disagreement_coworkers_3pts = 0 if disagreement_coworkers == 1
replace disagreement_coworkers_3pts = 1 if disagreement_coworkers == 2
replace disagreement_coworkers_3pts = 2 if disagreement_coworkers == 3
replace disagreement_coworkers_3pts = 2 if disagreement_coworkers == 4

egen disagreement_3pts = rowmax(disagreement_friends_3pts disagreement_coworkers_3pts)

* Main source of information

gen network_main = 1 if MBS11_B1 == 5 | MBS11_B1 == 6

replace network_main = 0 if MBS11_B1!=5 & MBS11_B1!=6
replace network_main = . if MBS11_B1 == 8
replace network_main = . if MBS11_B1 == 9


*********************************
** NATIONAL-LEVEL EXPECTATIONS **
*********************************

* Forecasts (0 = other, 1 = Liberal majority, 2 = Liberal minority, 3 = Conservative majority, 4 = Conservative minority)

gen forecast_whole = CPS11_48

recode forecast_whole (99=.)

* Identify correct forecasts

gen correct_whole_d = 0 if forecast_whole!=3 & forecast_whole!=.
replace correct_whole_d = 1 if forecast_whole == 3 & forecast_whole!=.


*********************************
** DISTRICT-LEVEL EXPECTATIONS **
*********************************

* Forecasts (0 = other, 1 = Liberal, 2 = Conservative, 3 = NDP, 4 = BQ, 5 = Green)

gen forecast_district = CPS11_44

recode forecast_district (99=.) 

* Identify correct forecasts

gen correct_district_d = 0 if forecast_district!=district_outcome & forecast_district!=.
replace correct_district_d = 1 if forecast_district == district_outcome & forecast_district!=.


**********
** SAVE **
**********

save "ca2011_ces.dta", replace


*******************
** MAIN ANALYSES **
*******************

* Regression analysis and percentage of correct and incorrect forecasts (national)

logistic correct_whole_d discussion2 disagreement size pidscale_whole interest age i.male education time
estimates table, star(.05 .01 .001)

tab correct_whole_d if e(sample) == 1

* Regression analysis and percentage of correct and incorrect forecasts (district)

melogit correct_district_d discussion2 disagreement size pidscale_district interest age i.male education time enep i.reelected || fed11: , or
estimates table, star(.05 .01 .001)

tab correct_district_d if e(sample) == 1


************************
** SUMMARY STATISTICS **
************************

label variable correct_whole_d "Government status (DV)"
label variable correct_district_d "District winner (DV)"
label variable discussion2 "Discussion"
label variable disagreement "Disagreement"
label variable size "Network size"
label variable contact "Social contact"
label variable pidscale_whole "National PID"
label variable pidscale_district "District PID"
label variable age "Age"
label variable male "Gender (male = 1)"
label variable education "Education"
label variable interest "Interest"
label variable time "Time of interview"
label variable enep "ENEP"
label variable margin "Margin"
label variable reelected "Reelected"

quietly logistic correct_whole_d discussion2 disagreement size pidscale_whole interest age i.male education time

estpost tabstat correct_whole_d discussion2 disagreement size pidscale_whole interest age male education time if e(sample) == 1, statistics(n mean p50 sd min max) columns(statistics)

esttab using "ca2011_ces_summary_national.tex", substitute("\begin{table}[htbp]" "\begin{table}[H]") cells("count(label(N) fmt(%9.0fc)) mean(fmt(%5.1f) label(Mean)) p50(fmt(%5.1f) label(Median)) sd(fmt(%5.1f) label(Std. dev.)) min(fmt(%5.1f) label(Min)) max(fmt(%5.1f) label(Max))") label width(\textwidth) nomtitle nonumber noobs booktabs title("Summary statistics -- 2011 Canadian federal election (CES), national level") replace

eststo clear

quietly melogit correct_district_d discussion2 disagreement size pidscale_district interest age i.male education time enep i.reelected || fed11: , or

estpost tabstat correct_district_d discussion2 disagreement size pidscale_district interest age male education time if e(sample) == 1, statistics(n mean p50 sd min max) columns(statistics)

esttab using "ca2011_ces_summary_district.tex", substitute("\begin{table}[htbp]" "\begin{table}[H]") cells("count(label(N) fmt(%9.0fc)) mean(fmt(%5.1f) label(Mean)) p50(fmt(%5.1f) label(Median)) sd(fmt(%5.1f) label(Std. dev.)) min(fmt(%5.1f) label(Min)) max(fmt(%5.1f) label(Max))") label width(\textwidth) nomtitle nonumber noobs booktabs title("Summary statistics -- 2011 Canadian federal election (CES), district level") replace

eststo clear


*************************
** ADDITIONAL ANALYSES **
*************************

* Regression analysis and percentage of correct and incorrect forecasts (national)

logistic correct_whole_d i.network_main discussion2 disagreement size pidscale_whole interest age i.male education time
estimates table, star(.05 .01 .001)

* Regression analysis and percentage of correct and incorrect forecasts (district)

melogit correct_district_d i.network_main discussion2 disagreement size pidscale_district interest age i.male education time enep i.reelected || fed11: , or
estimates table, star(.05 .01 .001)

log close